Legacy Knowledge Base
Published Sep. 10, 2025

Log Directory for Liferay

Written By

Santhosh Kumar

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • The log folder may become oversized, causing server hang-ups, so how do I configure the logging directory for Liferay?

Environment

  • Liferay DXP  7.3
  • Liferay DXP 7.4

Resolution

  • The following are the steps that can be carried out to achieve this:

NOTE: The following resolution requires customization and should only be implemented at the discretion of your team. Liferay Support will not be able to assist with designing or implementing customizations.

1. Create a new login directory

log1.png

2. Copy the portal-impl.jar file into the jar file location and extract it. log2.png

3. Go to the META-INF folder and look for the portal-log4j.xml file and edit it. This is the default value and change it according to your requirements

log3.png

For reference:

log4.png

4. Then, copy the portal-log4j.xml property to the Liferay meta-inf folder and change its name from portal-log4j.xml to portal-log4j-ext.xml
(/home/me/support_liferay_poc/dxp_2.0_quarteley_release/liferay-dxp/tomcat/webapps/ROOT/WEB-INF/classes/META-INF)

log5.png

5. Similarly, you can also change the location of Catalina logs by configuring this file
(/home/me/support_liferay_poc/dxp_2.0_quarteley_release/liferay-dxp/tomcat/conf/logging.properties) 

log6.png

6. After making the changes, logs are stored in the new location. 
log7.png

Additional Information

  • Please reach out to the Global Services Team if more assistance is required from the Liferay side, as customization comes under their scope of work. 
Did this article resolve your issue ?

Legacy Knowledge Base