Red Hat Training

A Red Hat training course is available for Red Hat JBoss Enterprise Application Platform

12.4. Per-deployment Logging

12.4.1. About Per-deployment Logging

Per-deployment logging allows a developer to configure in advance the logging configuration for their application. When the application is deployed, logging begins according to the defined configuration. The log files created through this configuration contain information only about the behavior of the application.
This approach has advantages and disadvantages over using system-wide logging. An advantage is that the administrator of the JBoss EAP instance does not need to configure logging. A disadvantage is that the per-deployment logging configuration is read only on startup and so cannot be changed at runtime.

12.4.2. Disable Per-deployment Logging

Procedure 12.8. Disable Per-deployment Logging

  • Two methods of disabling per-deployment logging are available. One works on all versions of JBoss EAP 6, while the other works only on JBoss EAP 6.3 and higher.

    • JBoss EAP 6 (all versions)

      Add the system property:
    • JBoss EAP 6.3 (and higher)

      Exclude the logging subsystem using a jboss-deployment-structure.xml file. For details on how to do this, see Exclude a Subsystem from a Deployment in the Development Guide.