温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

tomcat日志级别

发布时间:2020-07-17 03:40:35 来源:网络 阅读:4236 作者:aishangwei 栏目:建站服务器

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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI