How do I separate the server.log into multiple log files with a specific log level or range

Solution Unverified - Updated -

Issue

  • How do I separate the server.log into multiple log files with a specific log level or range ?
  • I would like to separate server.log to two files with log level, for instance:
    • server_info.log: TRACE, DEBUG, INFO
    • server.log: WARN, ERROR

Environment

  • JBoss Enterprise Application Platform (EAP)
  • log4j

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.