log files (like server.log) rotation problem in JBoss EAP and Tomcat

Solution Verified - Updated -

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?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
    • 6.x
  • Tomcat
    • 5.5
    • 6.0
    • 7.0
    • 8.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.