legacy-knowledge-base
公開されました Sep. 10, 2025

ログ ファイルのサイズが 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

learn-legacy-article-disclaimer-text

問題

  • 他のログ ファイルのサイズが 0 である理由。 ファイルは 「host-manager.xxxx-xx-xx.log、localhost.xxxx-xx-xx.log、manager.xxxx-xx-xx.log」です。

Environment

  • Liferay DXP 7.2

解決策

  • 他のログ ファイル「host-manager.xxxx-xx-xx.log、localhost.xxxx-xx-xx.log、manager.xxxx-xx-xx.log」は、ロギングによって設定されていない限り、サイズが 0 になります。 。プロパティ。

追加情報

注意: 以下の手順と非公式のリンクには、Liferay サポートの範囲外のカスタム実装のアイデアが含まれています。 この情報の使用にあたっては、適切な裁量を行使してください。 Liferay からの実装のアイデアについてさらに支援が必要な場合は、専任の GS チームにお問い合わせください。 営業担当者は、GS チームとのつながりを発見して詳細を知るための優れたリソースです。

  • これについての詳細な情報は、このブログ 「Liferay と Tomcat のロギング」で説明されています。 完全なリファレンスとしてそれを見てください。
  • 以下は、非公式スレッドの例「localhost.log、catalina.log、manager.log、host-manager.log の違い
    • localhost_access (server.xml で定義されているのは 1 つのみ) アクセス ログ (= httpd のようなすべてのリクエスト)、
    • localhost ホストのログと最後に
    • host-manager および manager 関連する Web アプリケーションのログ。

    以下は、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

    より一般的なパターンは次のとおりです。

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

legacy-knowledge-base