logging-profile not working in domain mode for EAP 6.

Solution Verified - Updated -

Issue

I have setup logging profile for one of the applications as follows:

                <logging-profile name="EXTJARS-LOG">
                    <periodic-rotating-file-handler autoflush="true" name="FILE">
                        <formatter>
                            <pattern-formatter pattern="%p %d{HH:mm:ss} (%t) %c> %m%n"/>
                        </formatter>
                        <file path="extjars.${jboss.server.name}.log" relative-to="jboss.server.log.dir"/>
                        <suffix value="'.'yyyy-MM-dd-HH"/>
                        <append value="true"/>
                    </periodic-rotating-file-handler>
                    <root-logger>
                        <level name="INFO"/>
                        <handlers>
                            <handler name="FILE"/>
                        </handlers>
                    </root-logger>
                </logging-profile>

The applications MANIFEST.MF is like follows:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.0
Created-By: 1.7.0_25-b15 (Oracle Corporation)
Built-By: smpbuild
Name: extjars.ear
Specification-Title: Service Management Platform
Specification-Vendor: XXXX
Specification-Version: 5.1
Implementation-Title: extjars.ear
Implementation-Vendor: Core Engineering
Implementation-Version: ${version.number} build ${build.number}
Implementation-Year: ${year}
Implementation-URL: www.xxx.com
Logging-Profile: EXTJARS-LOG

The configuration works fine in the standalone mode when the application is exploded. But in domain mode, the log file does get created, but nothing gets logged in those files. All the logging is still directed to the server log.

Environment

  • Red Hat JBoss Enterprise Application Platform(EAP) - 6.1.*

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.