Legacy Knowledge Base
公開されました Sep. 10, 2025

カスタムポートレットがSLF4Jで正しくログに記録されない

Written By

Dia Seung

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.

問題

  • Liferayの以前のバージョンから7.4またはQuarterly Releaseにlog4j2の設定が変更されていない状態で、SLF4Jが実装されたカスタムプラグイン(ポートレットとフック)が正しくログに記録されません。

環境

  • DXP 7.4
  • 2024.Q1.7より低い四半期リリース

解像度

注:以下の解決策はカスタマイズが必要であり、チームの裁量によってのみ実施されるべきである。 Liferayサポートはカスタマイズの設計や実装を支援することはできません。

  • slf4j-apiのバージョンを確認してください。 もし1.7.xより高ければ、問題を解決するためにダウングレードする必要があるかもしれません(さらに、カスタムプラグインでロギングがすぐに機能するかどうかを確認するために、パッチのバージョンでクリーンなLiferayバンドルと比較することができます)。

  • 2024.Q1.7未満のQuarterly Releaseを使用している場合は、2024.Q1.7へのアップグレードをお試しいただくか、サポートチケットでLPD-21711の修正を含むHotfixをリクエストしてください。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base