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.
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar