クラスタ環境で、ログレベルの変更が反映されない場合がある
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
事象
- クラスタ環境を使用しています。
- コントロールパネル>サーバー管理>ログレベル からログレベルを変更した際に、そのログが出力されませんでした。
- アクセスするたびに、設定したログレベルの内容が変わる場合があります。
解決
-
アクセス毎に設定が異なって見えたのは、アクセス先のノードがロードバランサによって振り分けられた事によるものと思われます。
また、Masterノードでのみ実行されるタスクも存在するため、SlaveでDEBUGに設定したカテゴリの操作を行っても、ログがスローされない可能性も考えられます。
- 各ノードでDEBUGログを有効にするか、log4jを使った恒久的なログレベルの変更が必要となります。
did-this-article-resolve-your-issue