Confluence 5.7 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
Confluence では、Apache の log4j ログ記録サービスを使用しています。これによって、開発者または管理者は、アプリケーション バイナリに触ることなく、設定ファイルを編集することで、ログ記録の動作やログ出力ファイルを制御することができます。log4j のログ レベルは6つあります。
If you request help from Atlassian Support, we will almost always ask for the atlassian-confluence.log
from the confluence-home/logs
directory. You can access the logs from the Confluence Administration Console, via the support tool. If you cannot access the Confluence Administration Console, check the properties file at <confluence-installation>/confluence/WEB-INF/classes/confluence-init.properties
, look for the confluence.home
setting in that file, then find the logs in the Confluence home directory.
This section describes Confluence's default logging behaviour, assuming that you have not changed the destination of the logs. In order to unify logging across different application servers, Confluence uses the atlassian-confluence.log
as its primary log, not the application server log.
Both the Confluence and Confluence EAR/WAR distributions follow the same default behaviour:
<confluence-home>/logs/atlassian-confluence.log
に記録されます。例: c:/confluence/data/logs/atlassian-confluence.log
デフォルトの場所はアプリケーション サーバーのログ ファイルではなく、Confluence のホーム ディレクトリであることに注意してください。ホーム ディレクトリは <confluence-installation>/confluence/WEB-INF/classes/confluence-init.properties
で指定されています。
Confluence's logging behaviour is defined in the following properties file:
<CONFLUENCE-INSTALL>/confluence/WEB-INF/classes/log4j.properties
このファイルは、Apache の log4j ドキュメントに記載されているような、標準的な log4j 設定ファイルです。
用語: log4j では、出力先を「アペンダ」と呼びます。
To change the destination of the log files, you need to stop Confluence and then change the settings in the 'Logging Location and Appender' section of the log4j.properties
file. The location of this file is described above.
標準的なプロパティ ファイルには、2つのアペンダ エントリがあります。
com.atlassian.confluence.logging.ConfluenceHomeLogAppender
– This is a custom appender which controls the default logging destination described above. This appender allows the following settings:org.apache.log4j.RollingFileAppender
- 異なる場所にログを出力する場合、RollingFileAppender
行のコメント化を解除し、その下の行で出力ファイルを変更します。ConfluenceHomeLogAppender
を参照する、手前の行をコメントアウトします。Confluence には log4j の提供するアペンダの完全なスイートが同梱されています。アペンダの詳細については、log4j のドキュメントを参照してください。
Confluence のログ設定を変更する方法の説明については、「ログ作成の設定」を参照してください。
このセクションには、必要になるかもしれない特定のログ設定に関するアドバイスがいくつか含まれています。
データベースに送信される個々の SQL リクエストを記録できるように、Confluence のログを増やすことができます。これは特定の問題のトラブルシューティングに役立ちます。
2つの方法で、詳細な SQL のログ記録を有効化できます。
ユーザーが Confluence 内のどのページにアクセスしているかを示すようにログを設定することができます。これは、ログ記録のプロパティ ファイルの介してのみ利用可能です。詳細な手順を参照してください。
Confluence では、Confluence ログのエラーを確認したり、それがナレッジ ベースやバグ トラッカーの既知の問題に一致するかどうかを確認する組み込みのログ スキャナーを提供しています。「問題のトラブルシューティングおよび技術サポートの依頼」を参照してください。
Enabling Detailed SQL Logging
Enabling user access logging
Generating a Thread Dump
Enabling Page Request Profiling
Troubleshooting Problems and Requesting Technical Support