log files (like server.log) is not rotated at the specified period in JBoss EAP and Tomcat
Issue
- Despite the fact that the log4j properties for server.log is set for daily rotation a new server.log will only get created if a request exists for that day. Is this expected?
- Is there a way to force JBoss and Tomcat to rotate exactly at 0:00 whether there is a logging event or not?
- I assume the default logging configuration with periodic-rotating-file-handler actually intended to rotate at midnight (24 hour period) in JBoss EAP 6.x/7.x, but my
server.log file
does not rotate exactly at 0:00.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 4.x
- 5.x
- 6.x
- 7.x
- Tomcat
- 5.5
- 6.0
- 7.0
- 8.0
- 9.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.