Issue
- How to override Liferay logs default configuration.
Environment
- Liferay DXP 7.4
Resolution
- Liferay logs default configuration is defined in
WEB-INF/shielded-container-lib/portal-impl.jar
inside the fileportal-log4j.xml
. The fastest way to override it is:
- Extract
portal-log4j.xml
fromportal-impl.jar
- Copy the extracted file to
WEB-INF/classes/META-INF
- Rename the file from
portal-log4j.xml
toportal-log4-ext.xml
- Apply the desired configuration.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In