How to rotate console.log in JBoss EAP ?

Solution Verified - Updated -

Issue

  • How to use PeriodicRotatingFileHandler for console.log file?
  • How to rotate the console logging which is obtained by the following:
./run.sh > console.log 2>&1
  • Since the console log is produced by a ConsoleAppender, the log rotate functionality provided by RollingFileAppender won't be available.
  • How to rotate the console log in Domain mode when using Linux service?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
    • 6.x
  • Red Hat JBoss Enterprise SOA Platform (SOA-P)
    • 4.x
    • 5.x
    • 6.x
  • Red Hat JBoss Data Grid
    • 7.2.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