gpt4 book ai didi

tomcat - Tomcat 7 上的日志记录配置

转载 作者:行者123 更新时间:2023-11-28 22:56:59 24 4
gpt4 key购买 nike

有没有办法完全关闭 Tomcat 7 上的日志记录?或者,是否可以设置“不太详细”的日志记录级别?

最佳答案

在tomcat下的conf/目录下有一个logging.properties文件。

您必须打开该文件并将日志级别更改为您想要的类型:

例如:

TOMCAT

您可以根据您的情况将日志级别更改为“INFO”:

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 More detailed logs the FINER

关于tomcat - Tomcat 7 上的日志记录配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24697464/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com