Show Table of Contents
5.3.2. Add Per-deployment Logging to an Application
To configure per-deployment logging, add the logging configuration file
logging.propertiesinto the deployment. This configuration file is recommended because it can be used with any logging facade as the JBoss Log Manager is the underlying log manager used.
If you are using
Simple Logging Facade for Java (SLF4J)or
Apache log4j, the
logging.propertiesconfiguration file is suitable. If you are using Apache log4j appenders then the configuration file
log4j.propertiesis required. The configuration file
jboss-logging.propertiesis supported only for legacy deployments.
Procedure 5.1. Add Configuration File to the Application
The directory into which the configuration file is added depends on the deployment method:
EARdeploymentCopy the logging configuration file to the
JARdeploymentCopy the logging configuration file to either the