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.
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión