[jboss-user] [Beginners Corner] - Re: IPs and URLs logging in JBoss
dgenkin
do-not-reply at jboss.com
Thu Aug 14 16:55:42 EDT 2008
By some reason it cut my last post. I am reposting it:
"PeterJ" wrote : Try uncommenting the RequestDumperValve in server.xml and see if that does it.
|
| In JBossAS 4.2.3, server.xml is located at server/xxx/deploy/jboss-web.deployer
Thanks, Peter. This provides excessvie logging, unfortunately.
I have found another interesting thing in the server.xml for access logging and this is actually what i need, but i cannot find where i specify the pattern.
Below is this logger funtionality. It has pattern='combined', can be 'common'. Where do i specify this pattern details? I need to add something like this LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined. Then i will log everything i need.
<!-- Access logger -->
by some reason the details of the access logger are getting cut here, unless i dont remove opening and closing tags, so i had to remove them:
<!--
Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="access_log." suffix=".log"
pattern="combined" directory="/log"
resolveHosts="false"
-->
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170666#4170666
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170666
More information about the jboss-user
mailing list