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

Liferayのログの設定を上書きする方法

written-by

Mariano Alvaro

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

問題

  • Liferay logsのデフォルト設定を上書きする方法。

Environment

  • Liferay DXP 7.4

解決策

  • Liferay logs のデフォルト設定は WEB-INF/shielded-container-lib/portal-impl.jar 内のファイル portal-log4j.xmlに定義されています。 一番手っ取り早く上書きできるのは
  1. portal-log4j.xml portal-impl.jarから抽出する。
  2. 解凍したファイルを WEB-INF/META-INFにコピーします。
  3. ファイル名を portal-log4j.xml から portal-log4-ext.xmlに変更します。
  4. 目的のコンフィグレーションを適用する。

did-this-article-resolve-your-issue

legacy-knowledge-base