Using <size-rotating-file-handler> results in no log messages (JBAS011511) on EAP 6.1.x

Solution Verified - Updated

Environment

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

Issue

  • Starting a JBoss container with following Warning message :

    WARN  [org.jboss.as.logging] (Controller Boot Thread) JBAS011511: Replacing handler 'FILE' during add operation. Either  the handler type or the module name differs from the initial configuration.
    

    Why this message happen?

  • If we change the FILE appender to then we see a warning on the console and no messages are logged to the server.log file

Resolution

Upgrade to EAP 6.2.0 or later.

As a work-around, change the logging configuration via a management interface (CLI or web console) or edit the logging.properties file to add "handler.FILE.formatter=FILE".

Root Cause

This content is not included.Bug 1008806

When the logging subsystem is changed in the on-disk XML, the logging subsystem must regenerate logging.properties to keep the two configurations synchronised. There is a bug in EAP 6.1.0 and 6.1.1 which causes it to do so incorrectly.

Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.