You can also have as many access logs as you wish. You can have an access log (or logs of different formats) at the engine, host level or the Context level.
-Tim
Andoni wrote:
Hello,
Tomcat is only configured through the server.xml file in <TOMCT_HOME>/conf/server.xml
It is the configuration centre for the servlet container and the web-server aspects of Tomcat.
If you choose not to use Apache as your front end and want to use Tomcat for this purpose then look in your default server.xml file (you should have a backup copy in /conf/ called server.xml.default) for a section like this:
<!-- 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. --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common"/>
It give you a valve that you can use to create access logs which will show each page access. But this is only necessary if you will not be using apache as your front end and that is not advisable. You cannot format these log files in the way you can format Apache's log files.
Hope that helps, Andoni.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
