https://www.cnblogs.com/operationhome/p/9680040.html
1 tomcat log details
1.1 tomcat log configuration file
The configuration file of tomcat corresponding to the log: / conf/logging.properties under the tomcat directory.
tomcat's log level includes: SEVERE (highest level) > WARNING > INFO > CONFIG > FINE > FINER (elaborate) > FINEST (all content, lowest level)
tomcat has five types of logs: catalina, localhost, manager, admin, host-manager
/ Con/logging.properties configuration file:
1 #Configurable items (5 types of logs): catalina, localhost, manager, admin, host-manager 2 handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler 4 5 #Log output to file and console 6 .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler 7 8 #Log output level: SEVERE (highest level) > WARNING > INFO > CONFIG > FINE > FINER (elaborate) > FINEST (all content, lowest level) 9 #Configuration files make catalina log output level FINE 10 1catalina.org.apache.juli.FileHandler.level = FINE 11 #catalina file output location 12 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 13 #The catalina log prefix is catalina 14 1catalina.org.apache.juli.FileHandler.prefix = catalina. 15 16 #Configuration files make the localhost log output level FINE 17 2localhost.org.apache.juli.FileHandler.level = FINE 18 #localhost file output location 19 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 20 #Localhost log prefix is localhost 21 2localhost.org.apache.juli.FileHandler.prefix = localhost. 22 23 #Configuration files make the manager log output level FINE 24 3manager.org.apache.juli.FileHandler.level = FINE 25 #manager file output location 26 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 27 #Manager log prefix is manager 28 3manager.org.apache.juli.FileHandler.prefix = manager. 29 30 #Configuration files make the host-manager log output level FINE 31 4host-manager.org.apache.juli.FileHandler.level = FINE 32 #Output location of host-manager file 33 4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 34 #Host-manager log prefix is host-manager 35 4host-manager.org.apache.juli.FileHandler.prefix = host-manager. 36 37 #Configuration file makes console log output level FINE 38 java.util.logging.ConsoleHandler.level = FINE 39 #Console log output format 40 java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter 41 42 #localhost log file output level is INFO 43 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO 44 #Localhost log file output processing class 2localhost.org.apache.juli.FileHandler 45 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler 46 47 #manager log file output level is INFO 48 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO 49 #Manager log file output processing class 3manager.org.apache.juli.FileHandler 50 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler 51 52 #The output level of host-manager log file is INFO 53 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO 54 #The host-manager log file output processing class 4host-manager.org.apache.juli.FileHandler 55 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler
1.2 tomcat log file details
tomcat has five types of logs: catalina, localhost, manager, admin, host-manager
1.2.1 catalina.out :
catalina.out is standard output and standard error. All output to these two locations will go into catalina.out. This includes the logs of tomcat running its own output and the logs output to console in the application. By default, this log file will not be automatically cut, we need to use other tools to cut (note: catalina.out file if too big impact)
#Intercept partial logs 19-Sep-2018 09:53:28.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.53 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 29 2018 14:42:45 UTC 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.53.0 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-862.el7.x86_64 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/java/jdk1.8.0_131/jre 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_131-b11 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /opt/tomcat 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /opt/tomcat 19-Sep-2018 09:53:28.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties 19-Sep-2018 09:53:28.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 19-Sep-2018 09:53:28.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 19-Sep-2018 09:53:28.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 19-Sep-2018 09:53:28.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 19-Sep-2018 09:53:28.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/tomcat 19-Sep-2018 09:53:28.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/tomcat 19-Sep-2018 09:53:28.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/tomcat/temp 19-Sep-2018 09:53:28.362 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 19-Sep-2018 09:53:28.676 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 19-Sep-2018 09:53:28.716 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 19-Sep-2018 09:53:28.731 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"] 19-Sep-2018 09:53:28.732 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 19-Sep-2018 09:53:28.746 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1083 ms 19-Sep-2018 09:53:28.794 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina 19-Sep-2018 09:53:28.794 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.53 19-Sep-2018 09:53:28.829 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/tomcat/webapps/ROOT 19-Sep-2018 09:53:29.524 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/tomcat/webapps/ROOT has finished in 694 ms 19-Sep-2018 09:53:29.524 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/tomcat/webapps/docs 19-Sep-2018 09:53:29.552 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/tomcat/webapps/docs has finished in 28 ms 19-Sep-2018 09:53:29.552 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/tomcat/webapps/examples 19-Sep-2018 09:53:29.987 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/tomcat/webapps/examples has finished in 434 ms 19-Sep-2018 09:53:29.987 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/tomcat/webapps/host-manager 19-Sep-2018 09:53:30.033 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/tomcat/webapps/host-manager has finished in 46 ms 19-Sep-2018 09:53:30.034 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/tomcat/webapps/manager 19-Sep-2018 09:53:30.064 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/tomcat/webapps/manager has finished in 29 ms 19-Sep-2018 09:53:30.082 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 19-Sep-2018 09:53:30.099 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"] 19-Sep-2018 09:53:30.106 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 1360 ms 2018-09-19 16:52:10 [] [] [INFO]-[Thread: DefaultQuartzScheduler_Worker-7] Start checking system