Java – do not log in to Catalina out

I have the following logging Properties configuration:

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = /mnt/asd/tomcat_logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = /mnt/asd/tomcat_logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = /mnt/asd/tomcat_logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = /mnt/asd/tomcat_logs
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

In folder / MNT / ASD / Tomcat_ There are the following files in logs:

> catalina. 2010-08-06. log > host-manager. 2010-08-06. log > localhost. 2010-08-06. log > manager. 2010-08-06. log

But there is Catalina in the / etc / Tomcat / Tomcat / log folder Out file How to change the path of a file to / MNT / ASD / Tomcat_ logs?

Solution

Edit conf / logging Properties and change:

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

adopt

.handlers = 1catalina.org.apache.juli.FileHandler
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>