简体   繁体   English

自动删除JULI日志文件

[英]Auto Delete JULI Log files

While using Tomcat in my application, when i import file from a location and stop my application in the middle, JULI log files are generated. 在我的应用程序中使用Tomcat时,当我从某个位置导入文件并在中间停止我的应用程序时,将生成JULI日志文件。 How to auto delete them as they just get created and are not destroyed. 如何自动删除它们,因为它们只是被创建而不会被破坏。

Is there any configuration to do so? 是否有任何配置可以这样做?

It depends on what you want to do. 这取决于您想做什么。 It is obviously possible to disable any logging in JULI. 很明显,可以禁用JULI中的任何日志记录。 JULI is an implementation of Java util Logging, see here for the details. JULI是Java util Logging的实现,有关详细信息,请参见此处 This is configured in the logging.properties file located in the conf directory of Tomcat. 这是在Tomcat conf目录中的logging.properties文件中配置的。 But only your applications calls to Java util Logging are responsible for JULI logs. 但是,只有您对Java util Logging的应用程序调用才负责JULI日志。

I would suggest that your problem is in the application log calls, not in the configuration anyway. 我建议您的问题出在应用程序日志调用中,而不是配置中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何配置Tomcat JULI日志记录以滚动日志文件? - How to configure Tomcat JULI logging to roll log files? 特定应用程序使用JULI登录tomcat 7? - Application specific log in tomcat 7 using JULI? 按周期自动删除索引日志 ElasticSearch - Auto Delete index log ElasticSearch by period Log4J-自动刷新日志文件,可以吗? - Log4J - Auto refresh log files, is it possible? log4j2无法删除旧文件 - log4j2 unable to delete old files 使用 OnStartupTriggeringPolicy 和 DirectWriteRolloverStrategy 删除旧日志文件 - Delete old log files with OnStartupTriggeringPolicy and DirectWriteRolloverStrategy Log4j2 - 配置RolloverStrategy以删除旧的日志文件 - Log4j2 - Configure RolloverStrategy to delete old log files 使用 java.util.logging -> log4j2 -> Tomcat 的 JULI 时记录级别不正确 - Logging levels not correct when using java.util.logging -> log4j2 -> Tomcat's JULI Java modules Jigsaw JPMS模块化阻止Spring容器因为org.apache.juli.logging.Log启动rest控制器 - Java modules Jigsaw JPMS modularization prevents Spring container from starting rest controller because of org.apache.juli.logging.Log java.util.ServiceConfigurationError: org.apache.juli.logging.Log: org.eclipse.jetty.apache.jsp.JuliLog 不是子类型 - java.util.ServiceConfigurationError: org.apache.juli.logging.Log: org.eclipse.jetty.apache.jsp.JuliLog not a subtype
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM