Legacy Knowledge Base
Published Sep. 10, 2025

Log file size is 0

Written By

Thanga Meena

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

  • Why the other log files size is 0. The files are "host-manager.xxxx-xx-xx.log, localhost.xxxx-xx-xx.log, manager.xxxx-xx-xx.log".

Environment

  • Liferay DXP 7.2

Resolution

  • The other log files "host-manager.xxxx-xx-xx.log, localhost.xxxx-xx-xx.log, manager.xxxx-xx-xx.log" will be 0 in size until unless those have been configured through logging.properties. 

Additional Information

Please Note: The following procedures and unofficial link involve custom implementation ideas that are beyond the scope of Liferay Support. Please exercise appropriate discretion in the use of this information. For further assistance on the implementation ideas from Liferay, please reach out to our dedicated GS team. Your sales representative is a great resource to discover the connectivity with the GS team to know more about it in detail.

  • Detailed information about the same is described in this blog "Liferay and Tomcat logging".  Please have a look at it for the complete reference.
  • Below is the example from the unofficial thread "difference between localhost.log, catalina.log, manager.log, host-manager.log".
    • localhost_access (only one defined in server.xml) the access log (= all requests like in httpd),
    • localhost the log of the host and finally
    • host-manager and manager the logs of the related web applications.

    Here a commented example to try help you read logging.properties:

    # log on the host "localhost"
    org.apache.catalina.core.ContainerBase.[Catalina].[localhost].xxx
    # log on the host "localhost" for the webapp foo
    org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo].xxx

    More generally the pattern is:

    org.apache.catalina.core.ContainerBase.[${engine}].[${host}].[${context}]
Did this article resolve your issue ?

Legacy Knowledge Base