日期:2014-05-19  浏览次数:20713 次

关于tomcat日志的一些问题。
tomcat/conf 路径下的这个文件logging.properties 
XML code


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

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

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

4admin.org.apache.juli.FileHandler.level = FINE
4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4admin.org.apache.juli.FileHandler.prefix = admin.

5host-manager.org.apache.juli.FileHandler.level = FINE
5host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
5host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter


上面都是什么意思?
是不是tomcat/log下面对应的日志文件catalina.out,localhost.log,manager.log,admin.log,host-manager.log
linux下启动的时候为什么报错java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler

------解决方案--------------------
看看tomcat-juli.jar有这个没,这个在classpath中没。
------解决方案--------------------
jar是封装好的代码块,需要你去调用哦,linux和windows都需要
------解决方案--------------------
看看tomcat-juli.jar有这个没,这个在classpath中没。