Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Tomcat 7 在标准输出中记录了这样的消息:
INFO: Stopping service Catalina 31/05/2012 15:58:59 org.apache.coyote.http11.Http11AprProtocol destroy
但我只需要记录 WARN 和 ERROR 消息。
无论如何设置这个?
${catalina.base}/conf/logging.properties <-- 改变这个文件,我猜你需要这个设置
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO