In JBoss 5 you could switch on the access logging by uncommenting the appropriate Valve in the <profile-home>/deploy/jbossweb.sar/server.xml file. I cannot image that this function is vanished into JBoss 7. Reading some posts, I have put:
| <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false"> |
| <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/> |
| <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/> |
| <virtual-server name="default-host" enable-welcome-root="true"> |
| <alias name="localhost"/> |
| <access-log> |
| <directory relative-to="jboss.server.log.dir"/> |
| <profix>${jboss.access.log.file}_access_log.</prefix> |
| <suffix>.log</suffix> |
| <pattern>common</pattern> |
| </access-log> |
| </virtual-server> |
</pre>
In my standalone-full-ha.xml, but I still get no access_log in de jboss.server.log.dir directory. What do I do wrong here ?