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, 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