Does anyone know how to log the User-Agent (browser) in Tomcat access logs?
I found this reference on the web, but don't really get the context. I tried replacing the Logger node in my server.xml file with the second listed RequestInterceptor but its still not logging the User-Agent. Does anyone know quite how this fits in? Also while on the topic - does anyone know how Tomcat's default log format compares to Apache's? <RequestInterceptor className="org.apache.tomcat.logging.AccessLogInterceptor" logFile="logs/AccessLog" format="combined"/> <RequestInterceptor className="org.apache.tomcat.logging.AccessLogInterceptor" logFile="logs/AccessLog" format='%h %l %u %t "%r" %s %b "%{User-Agent}"'/> Thanks. Neal -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>