How to enable jboss access log

Add the following to jboss/server/<InstanceName>/deploy/jbossweb.sar/server.xml in all instaces to enable htttp logging.


<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="access." suffix=".log"
pattern="%t %h Code:%s %Tsec - %Bbytes --%r" directory="${jboss.server.log.dir}"
resolveHosts="false" />

This will enable http access logging in Jboss.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.