码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat日志级别

时间:2018-06-05 16:24:07      阅读:461      评论:0      收藏:0      [点我收藏+]

标签:tomcat logging

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 = 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日志级别

标签:tomcat logging

原文地址:http://blog.51cto.com/aishangwei/2125067

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!