A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
tomcat: Log all access
Joined: Apr 11, 2005
Jan 17, 2008 03:59:00
I want log all acceses to
in order to detect a problem with certificates.
I configurated logging.properties file with "ALL" in all lines. In the log folder it create log files but all are empty.... What is wrong?
PS: My tomcat is on windows xp
<a href="http://www.hhdirecto.net" target="_blank" rel="nofollow">http://www.hhdirecto.net</a>
Joined: Dec 11, 2004
Jan 17, 2008 04:23:00
In $CATALINA_HOME/conf/server.xml there are a few options for access logging.
Read the comments for each of them and un-comment the the one that best suits you.
<!-- Access log processes all requests for this virtual host. By default, log files are created in the "logs" directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the "directory" attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. This access log implementation is optimized for maximum performance, but is hardcoded to support only the "common" and "combined" patterns. --> <!-- <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> -->
How to ask a question...
Simple Servlet Examples
It is sorta covered in the
JavaRanch Style Guide
subject: tomcat: Log all access
The requested resource (/struts2tutorial/) is not available.
How to activate Realm logs in Tomcat 5.5 / 6 ?
server log disappear from console
How to cionfigure Tomcat Server Log
How to setup Tomcat Server log
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015