Using log4j1 inside the EAR
Use log4j1 inside the EAR.
About this task
To use a log4j1 file inside the EAR:
Procedure
- Create new file in
INSTALL_DIR/resources, for examplelog4jconfig.custom.xml. - Modify
customer_overrides.propertiesused by your application server to addyfs.log4j.configuration=/resources/log4jconfig.custom.xml. - Run
INSTALL_DIR/bin/deployer.sh -t resourcejar. This putslog4jconfig.custom.xmlinresources.jar. - Rebuild and redeploy the EAR, following the instructions for your application server type.