Confluence のログ作成を自分自身の要件に設定することをお勧めします。以下の 2 通りの方法で、ログ設定を変更できます。
- Confluence 管理でログ作成を設定する – 変更は、次回 Confluence を再起動するまで有効になるだけです。
- プロパティファイルを編集する – 変更は、次回 Confluence を開始したとき有効になり、それ以後のすべてのセッションに適用されます。
Both methods are described below.
用語: log4j で、"logger" は、名前を持つエンティティです。logger 名では大文字と小文字が区別され、階層的な命名基準に従います。たとえば、com.foo という名前の logger は、com.foo.Bar という名前の logger の親です。

Confluence 管理でログ作成を設定する
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.
Not all logging behaviour can be changed via the Administration Console. For logging configuration not mentioned below, you will need to stop Confluence and then edit the logging properties file instead.
「ログとプロファイルの作成」画面には、現在のすべての定義済みロガーの一覧が表示されます。この画面では、以下の操作が可能です。
- Turn page profiling on or off.
- 詳細な SQL ログ作成のオンまたはオフ。
- クラス/パッケージ名の新しいロガーの追加。
- クラス/パッケージ名のロガーの削除。
- 各クラスまたはパッケージ名のログ作成レベル (INFO、WARN、FATAL、ERROR またはDEBUG) の設定。
- すべてのログ作成レベルを事前定義済みプロファイルにリセット。
ログ作成の設定を変更する

- Select 'Logging and Profiling' in the 'Administration' section of the left-hand panel.
You need to have System Administrator permissions in order to perform this function.
- 以下に示すように、「ログとプロファイル作成の構成」画面が表示されます。Confluence の稼働中に次のガイドラインを使用してログ作成動作を変更します。
- 'Performance Profiling' — See Page Request Profiling.
- 'SQL Logging' — Click the 'Enable SQL Logging' button to log the details of SQL requests made to the database.
If you need to enable logging of SQL parameter values, you will need to change the setting in the properties file. This option is not available via the Administration Console.
- 「Log4j ログ作成」' — 次のプロファイル ボタンのいずれかをクリックして、すべてのロガーを事前定義済みのプロファイルにリセットします。
- 「実稼働用」プロファイルは非常に標準的なプロファイルであり、通常の本番環境条件に推奨されます。
- 「診断用」プロファイルはより多くの情報を提供し、トラブルシューティングやデバッグに役立ちます。このため、パフォーマンスは落ちますが、ログファイルへの記録は速くなります。
- 「新規エントリの追加」 — クラスまたはパッケージ名をテキストボックスに入力して「エントリの追加」ボタンをクリックします。新しいロガーは、画面下部の「既存のレベル」の一覧に表示されます。
- 「既存のレベル」 - これらは、ご使用の Confluence インスタンスに関して現在実行中のロガーです。
- You can change the logging level by selecting a value from the 'New Level' dropdown list. Read the Apache documentation for a definition of each level.
- 「削除」リンクをクリックして、選択したクラス/パッケージ名のログ作成を停止します。
- 「保存」ボタンをクリックして、「既存のレベル」セクションで行った変更を保存します。
スクリーンショット: ログレベルの変更とプロファイル作成

プロパティファイルを編集する
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.
The properties file contains a number of entries for different loggers that can be uncommented if you are interested in logging from particular components. Read more in the Apache log4j documentation.
See Working with Confluence Logs for some guidelines on specific configuration options you may find useful.