Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tomcat log level

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

There are several tomcat log levels:

Log level Description

SEVERE (highest) "Captures exception and ErrorWARNING" Warning messagesINFO "Informational message, related to the server activityCONFIG" Configuration messageFINE "Detailed activity of the server transaction (similar to debug) FINER" More detailed logs than FINEFINEST (least) "Entire flow of events (similar to trace)

For example, take a look at the log level configured in the following file:

Localhost.org.apache.juli.FileHandler.level = FINElocalhost.org.apache.juli.FileHandler.directory = ${catalina.base} / logslocalhost.org.apache.juli.FileHandler.prefix = localho``st. * * contents of the log: * *

# # #

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report