Confluence 5.6 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
Confluence のログ作成を自分自身の要件に設定することをお勧めします。以下の 2 通りの方法で、ログ設定を変更できます。
両方の方法について以下で説明します。稀な状況で、logging.properties ファイルを設定する必要がある場合もあります。
用語: log4j で、"logger" は、名前を持つエンティティです。logger 名では大文字と小文字が区別され、階層的な命名基準に従います。たとえば、com.foo という名前の logger は、com.foo.Bar という名前の logger の親です。
The information on this page does not apply to Confluence Cloud.
You can change some of Confluence's logging behaviour via the Administration Console while Confluence is running. Any changes made in this way will apply only to the currently-running Confluence lifetime. The changes are not written to the log4j.properties file and are therefore discarded when you next stop Confluence.
すべてのログ作成動作が管理コンソールから変更できるわけではありません。以下に説明されていなログ作成設定の場合、Confluence を停止してから、ログ作成プロパティファイルを編集する必要があります。
「ログとプロファイルの作成」画面には、現在のすべての定義済みロガーの一覧が表示されます。この画面では、以下の操作が可能です。
スクリーンショット: ログレベルの変更とプロファイル作成
To configure the logging levels and other settings on a permanent basis, you need to stop Confluence and then change the settings in the log4j.properties file, described above.
プロパティファイルには、様々なロガーの多くのエントリが含まれています。これらは、特定のコンポーネントからログ作成したい場合、コメントを外すことができます。詳細は、Apache log4j ドキュメントをお読みください。
役立つと思われる特定の設定オプションに関するガイドラインについては、「Confluence ログの使用」を参照してください。
Confluence によって使用される少数のライブラリは、log4j または slf4j ではなく、java.util.logging を使用します。該当するライブラリは以下のとおりです。
Confluence の logging.properties ファイルは、特定のレベルの java.util.logging を slf4j 経由で log4j にリダイレクトするように設定されています。
To increase logging levels for these libraries you must first configure the logging.properties file in <CONFLUENCE-INSTALL>/confluence/WEB-INF/classes/. The logging levels are different from log4j and are listed here.
For example, to increase logging for shindig change the following line in the logging.properties file:
org.apache.shindig.level = INFO
to
org.apache.shindig.level = FINE
その後、同様に上述のいずれかの方法を使用して log4j レベルを設定します。