原文链接:原文链接
配置tomcat的日志输出 :
把tomcat的启动日志以及容器日志输出,打印到控制台
To get these logs by default in the console just update the following line from conf/logging.properties:
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler
To:
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler,java.util.logging.ConsoleHandler
I personnally use the following logging.properties (the complete file!) to avoid any log file (in dev):
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter