Bug 66104

Summary: Check for the existence of the log directory before executing the cleanup task at startup
Product: Tomcat 10 Reporter: Han Li <lihan>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ------   
Hardware: PC   
OS: Mac OS X 10.1   

Description Han Li 2022-06-05 07:28:32 UTC
If I specify a new logging directory and it does not exist, the message "java.util.logging.ErrorManager: 0: Unable to delete log files older than [90] days" will be displayed at startup. . The reason for this is that the directory is only created the first time the log is written, but when the cleanup task is performed at startup, the directory has not yet been created.
Although this doesn't affect anything, I think it needs to be solved.
Comment 1 Han Li 2022-06-05 07:32:26 UTC
the pr: https://github.com/apache/tomcat/pull/521
Comment 2 Mark Thomas 2022-06-06 11:49:47 UTC
Thanks for the PR.

Fixed in:
- 10.1.x for 10.1.0-M17 onwards
- 10.0.x for 10.0.23 onwards
- 9.0.x for 9.0.65 onwards
- 8.5.x for 8.5.80 onwards