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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content