Setting 'level-range' logging filter fails with "JBAS011539: Log level undefined is invalid." in EAP 6

Solution Unverified - Updated -

Issue

  • level-range logging filter should work with the setting like this, under a logger or a handler element in the logging subsystem section of standard.xml or domain.xml.
            <periodic-rotating-file-handler name="FILE">
                <filter>
                    <level-range min-level="DEBUG" max-level="WARN"/>
                </filter>
                ...
            </periodic-rotating-file-handler>

Though it doesn't work and find the following error message in the boot.log.

12:33:03,753 ERROR [org.jboss.as.controller.management-operation] JBAS014613: Operation ("add") failed - address: ([
    ("subsystem" => "logging"),
    ("periodic-rotating-file-handler" => "FILE")
]) - failure description: "JBAS011539: Log level undefined is invalid."

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0.0

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