tomcat日志级别
tomcat日志级别有以下几种:
Log level Description
创新互联是一家专注于网站制作、网站建设与策划设计,德化网站建设哪家好?创新互联做网站,专注于网站建设十年,网设计领域的专业建站公司;建站业务涵盖:德化等地区。德化做网站价格咨询:18980820575
- 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 = FINE
localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
localhost.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
当前题目:tomcat日志级别
文章转载:http://myzitong.com/article/pdjegd.html