How to rotate tomcat log periodically based on size using log4j?

Solution Verified - Updated -

Issue

  • How can I configure the tomcat logging system to create new log file in case of the current log reaches to a configurable limit size, or to create new file on daily basis, while the former file name will be renamed?

Environment

  • Red Hat JBoss Web Server (JWS / EWS)
    • 2.x
    • 3.x

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.