How to override Liferay logs configuration


  • How to override Liferay logs default configuration.


  • Liferay DXP 7.4


  • Liferay logs default configuration is defined in WEB-INF/shielded-container-lib/portal-impl.jar inside the file portal-log4j.xml. The fastest way to override it is:
  1. Extract portal-log4j.xml from portal-impl.jar
  2. Copy the extracted file to WEB-INF/classes/META-INF
  3. Rename the file from portal-log4j.xml to portal-log4-ext.xml
  4. Apply the desired configuration.


Was this article helpful?
0 out of 1 found this helpful