Access logs are customized logs, which record all requests processed by the server giving information about: The user that has accessed the application What components of the application are accessed Remote IP and so on These logs play a vital role in traffic analysis of many applications to analyze the bandwidth requirement and they also help in troubleshooting the application under a heavy load. These logs are configured in server.xml in TOMCAT_HOME/conf . You can configure access logs according to the environment and your auditing requirements. Let's see the pattern format of the access logs and understand how we can customize the logging format: And now some explanation about the parameters contained in the AccessLogValve: Class Name : This parameter defines the class name used for the generation of logs. By default, Apache Tomcat 7 uses the org.apache.catalina.valves.AccessLogValve class for the access logs. Directory : This parameter defines ...
This blog is a friendly place where you can learn about tomcat configuration, tomcat tips and more....