[jboss-user] [Beginners Corner] - Re: IPs and URLs logging in JBoss

dgenkin do-not-reply at jboss.com
Mon Aug 18 17:32:07 EDT 2008

After trials and errors found how to log what i wanted. The following needs to be specified in the server.xml:

  | <Valve className="org.apache.catalina.valves.AccessLogValve"
  |                 prefix="access_log." suffix=".log"
  |                 pattern="%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
  |                 directory="$JBOSS_LOGS"
  |                 resolveHosts="false" />

Note that instead of " i have to use "

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171153#4171153

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171153

More information about the jboss-user mailing list