tomcat 8问题不显示任何调试错误

我使用 tomcat 8.5.49,我的logging.properties如下所示:


handlers = 1catalina.org.apache.juli.FileHandler, \

           2localhost.org.apache.juli.FileHandler, \

           3manager.org.apache.juli.FileHandler, \

           java.util.logging.ConsoleHandler


.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler


############################################################

# Handler specific properties.

# Describes specific configuration info for Handlers.

############################################################


1catalina.org.apache.juli.FileHandler.level = FINE

1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

1catalina.org.apache.juli.FileHandler.prefix = catalina.

1catalina.org.apache.juli.FileHandler.maxDays = 90

1catalina.org.apache.juli.FileHandler.encoding = UTF-8


2localhost.org.apache.juli.FileHandler.level = FINE

2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

2localhost.org.apache.juli.FileHandler.prefix = localhost.

2localhost.org.apache.juli.FileHandler.maxDays = 90

2localhost.org.apache.juli.FileHandler.encoding = UTF-8


3manager.org.apache.juli.FileHandler.level = FINE

3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

3manager.org.apache.juli.FileHandler.prefix = manager.

3manager.org.apache.juli.FileHandler.bufferSize = 16384

3manager.org.apache.juli.FileHandler.maxDays = 90

3manager.org.apache.juli.FileHandler.encoding = UTF-8


java.util.logging.ConsoleHandler.level = FINE

java.util.logging.ConsoleHandler.formatter = java.util.logging.OneLineFormatter

java.util.logging.ConsoleHandler.encoding = UTF-8


############################################################

# Facility specific properties.

# Provides extra control for each logger.

############################################################

交互式爱情
浏览 125回答 1
1回答

HUX布斯

您还检查过logs/localhost.log吗?有时,一些 tomcat 错误会显示在 localhost 日志中,但不会显示在 catalina 日志中。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java