2009/1/20 Kaushal Shriyan <kaushalshri...@gmail.com>: > > I am using tomcat-5.5.26, sun-jdk-1.5.0.15 on gentoo linux, I have enabled > the below in server.xml > > <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve" > directory="logs" prefix="localhost_access_log." > suffix=".txt" > pattern="%h %l %u %t %r %s %b %D %T" resolveHosts="false"/> > > The issue is that i don't see time parameter value in the > /var/log/tomcat-5.5/localhost_access_log.2009-01-20.txt file > Below is the snippet of the local access log > > 172.20.2.111 - - [20/Jan/2009:04:08:40 -0800] "GET > /Trunk/login?sessionExpired=true HTTP/1.1" 200 40005 > > Any clue >
In TC 5.5 the only allowed values for the pattern attribute of FastCommonAccessLogValve are "common", "combined" or their exact expansions. You cannot use an arbitrary pattern. Use AccessLogValve class for that. Note, as I see AccessLogValve in 5.5 has optimized support for "common" and "combined" patterns, thus maybe the gain from using the FastCommon* one is not that much. In TC 6.0 both fast and arbitrary patterns are implemented by AccessLogValve class and FastCommonAccessLogValve class is deprecated. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org