Tomcat一个应用非常广泛的Web服务器,在启动Tomcat发布项目的过程中该软件自身会在logs文件夹中产生很多日志文件,如下图:
如果不需要生成这些文件,可以配置tomcat/conf文件夹中的logging.properties文件,把下面内容注释掉以后重新启动tomcat即可:
#.apache.juli.FileHandler.level = FINE#.apache.juli.FileHandler.directory = ${catalina.base}/logs#.apache.juli.FileHandler.prefix = catalina.#.apache.juli.FileHandler.level = FINE#.apache.juli.FileHandler.directory = ${catalina.base}/logs#.apache.juli.FileHandler.prefix = localhost.#.apache.juli.FileHandler.level = FINE#.apache.juli.FileHandler.directory = ${catalina.base}/logs#.apache.juli.FileHandler.prefix = manager.#.apache.juli.FileHandler.level = FINE#.apache.juli.FileHandler.directory = ${catalina.base}/logs#.apache.juli.FileHandler.prefix = admin.#5host-.apache.juli.FileHandler.level = FINE#5host-.apache.juli.FileHandler.directory = ${catalina.base}/logs#5host-.apache.juli.FileHandler.prefix = host-manager.