On this page:
This section describes Confluence's default logging behaviour, assuming that you have not changed the destination of the logs. So as to unify logging across different application servers, Confluence uses the atlassian-confluence.log, not the application server log, as it's primary log.
|
Atlassian Support will almost always ask for the atlassian-confluence.log from the |
For Confluence 2.6.x and earlier, the default behaviour is:
<confluence_install>/logs. The main log file is called atlassian-confluence.log.For Confluence 2.7.x and later, both Standalone and EAR/WAR distributions follow the same default behaviour:
<confluence-home> log described below.<confluence-home>/logs/atlassian-confluence.log. For example: c:/confluence/data/logs/atlassian-confluence.log.Confluence uses Apache's log4j logging service. This allows a developer or administrator to control the logging behavior and the log output file by editing a configuration file, without touching the application binary. There are six known log4j logging levels.
Confluence's logging behaviour is defined in the following properties file:
<CONFLUENCE-INSTALL>/confluence/WEB-INF/classes/log4j.properties
This file is a standard log4j configuration file, as described in the Apache log4j documentation.
用語: 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.
In the standard properties file supplied with Confluence 2.7 and later, you will find entries for two appenders:
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 ships with the full suite of appenders offered by log4j. Read more about appenders in the log4j documentation.
See Configuring Logging for instructions on how to change the logging configuration of Confluence.
このセクションには、必要になるかもしれない特定のログ設定に関するアドバイスがいくつか含まれています。
データベースに送信される個々の SQL リクエストを記録できるように、Confluence のログを増やすことができます。これは特定の問題のトラブルシューティングに役立ちます。
2つの方法で、詳細な SQL のログ記録を有効化できます。
You can configure the log to show which users are accessing which pages in Confluence. This can only be done via the logging properties file – see the detailed instructions.
Thread dumps are logged to the application server log file.