当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Despite my setting up my own logging.properties, everything still also logs to catalina.out. How to stop?

问题描述:

I am using Tomcat version 5.5.x. My WAR sets its own logging properties successfully and logs to $TOMCAT_HOME/logs/.YYYY-MM-DD.log. Everything that is written to my log is also written to catalina.out. Is there a way to stop the redundant logging to catalina.out stop?

网友答案:

Change your application's logging configuration so it doesn't log anything to the console/standard out. Tomcat redirects standard out to the catalina.out file, so if you see output in catalina.out it implies your application is writing to the console.

分享给朋友:
您可能感兴趣的文章:
随机阅读: