tomcat日志级别
tomcat日志级别有以下几种:
Log level Description
- SEVERE(highest) Captures exception and Error
- WARNING Warning messages
- INFO Informational message, related to the server activity
- CONFIG Configuration message
- FINE Detailed activity of the server transaction (similar to debug)
- FINER More detailed logs than FINE
- FINEST(least) Entire flow of events (similar to trace)
比如看下如下文件配置的日志级别:
localhost.org.apache.juli.FileHandler.level = FINElocalhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logslocalhost.org.apache.juli.FileHandler.prefix = localho```st.**日志的内容:**
############################################################
Facility specific properties.
Provides extra control for each logger.
############################################################
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] .level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] .handlers = 3manager.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host- manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host- manager].handlers = 4host-manager.org.apache.juli.FileHandler