Tomcat一个应用非常广泛的Web服务器,在启动Tomcat发布项目的过程中该软件自身会在logs文件夹中产生很多日志文件,如下图:
如果不需要生成这些文件,可以配置tomcat/conf文件夹中的logging.properties文件,把下面内容注释掉以后重新启动tomcat即可:
#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.