Documentation for Crowd 2.4. Documentation for other versions of Crowd is available too.
When troubleshooting problems with your Crowd installation, it is often useful to change the level of information provided by your Crowd server so that more information, messages and warnings are shown than usual. This page describes how to:
With performance profiling turned on, your system output console will show a record of the time it takes (in milliseconds) to complete each Crowd action. This will help with diagnosing performance problems. The resulting output will be large, so you should not enable it for long periods.
You can see an example of performance profiling output here.On this page:
Crowd uses Apache's log4j logging service. The amount of information written to the log file is determined by the logging 'level'. The type of message output at each level is as follows:
レベル | Type of Message Written to the Log |
---|---|
DEBUG | Used to troubleshoot SSO problems only. These are low-level details that most people never need to know about. NOTE: This setting may cause user passwords to be logged. |
INFO | Informational messages about what Crowd is doing. Usually not interesting. |
WARN | Warnings that something may have gone wrong, or other messages a system administrator may wish to know. These are conditions that, while not errors in themselves, may indicate that the system is running sub-optimally. |
エラー | Indications that something has gone wrong in Crowd. The person responsible for configuring Crowd should be notified. |
FATAL | Indications that something has gone wrong so badly that the system cannot recover. |
すべて | All possible log messages. |
When you report a problem to Atlassian Support, we may ask you to send us your インストールの種類 Location of Log File Crowd Standalone edition Crowd 2.0.3 and older versions: In the root directory of your Crowd application, e.g. Crowd Standalone running as a Windows service Crowd WAR edition The directory from which you start the application server, e.g. atlassian-crowd.log
file. The location of the log file may vary, depending on your Crowd installation type. Provided that you have not changed the log file location from the default, the Crowd log file is at the location described below.
atlassian-crowd-2.0.0/atlassian-crowd.log
Crowd 2.0.4 and newer versions: In the Crowd application Home Directory, e.g. Crowd-Home-Directory/logs/atlassian-crowd.log
C:\Windows\system32\atlassian-crowd.log
apache-tomcat-6.0.16/bin/atlassian-crowd.log
You can change the log settings in two ways:
If necessary, you can edit the configuration file directly
If you change the log settings via the Administration Console, the changes are not written to the log4j.properties
file and are therefore discarded when you next stop Crowd. Also, not all logging behaviour can be changed via the Administration Console. For logging configuration not mentioned below, or to change the log settings permanently, you will need to stop Crowd and then edit the log configuration file instead.
The 'Logging & Profiling' screen tells you whether performance profiling is currently on or off, and shows a list of all currently defined loggers. On this screen you can:
With performance profiling turned on, your system output console will show a record of the time it takes (in milliseconds) to complete each Crowd action. This will help with diagnosing performance problems. The resulting output will be large, so you should not enable it for long periods.
You can see an example of performance profiling output here.To configure profiling and logging,
Screenshot: Changing Log Levels and Profiling
Description of the loggers:
logger | 説明 |
---|---|
| This is the parent of the crowd package loggers. Any children which do not have a level assigned to them will inherit the level from their parent. This logger should be set to DEBUG only if you are investigating SSO issues. |
| Can be helpful if a Crowd SOAP service fault is thrown. It is best to enable DEBUG for all three XFire classes simultaneously when troubleshooting Crowd's SOAP service. |
| The Crowd server outputs the incoming SOAP request method and parameters. This is useful when debugging your applications or monitoring the level of traffic for an integrated application. |
| The Crowd server outputs the outgoing SOAP request method and parameters. This is useful when debugging your applications or monitoring the level of traffic for an integrated application. |
| Useful for troubleshooting certain licensing issues in Crowd. |
| Can be helpful for troubleshooting startup errors in Crowd. |
| This is the root of the logger hierarchy, i.e. it is the parent of all loggers. The level assigned to the root will be the default level for any loggers which do not have a specific level and do not inherit from another parent. |
Terminology: In log4j, a 'logger' is a named entity. Logger names are case sensitive and follow a hierarchical naming standard. For example, the logger named com.foo
is a parent of the logger named com.foo.Bar
.
Crowd's logging behaviour is defined in the following properties file:
CROWD-INSTALL}/crowd-webapp/WEB-INF/classes/log4j.properties
CROWD-WAR-INSTALL}/WEB-INF/classes/log4j.properties
このファイルは、Apache の log4j ドキュメントに記載されているような、標準的な log4j 設定ファイルです。
To configure the logging levels and other settings on a permanent basis:
log4j.properties
file in the location described above.log4j.properties
file.When diagnosing a server problem you need to adjust Crowd's package logging to:
log4j.logger.com.atlassian.crowd=DEBUG
用語: log4j では、出力先を「アペンダ」と呼びます。
To change the destination of the Crowd log file:
log4j.properties
file in the location described above.org.apache.log4j.RollingFileAppender
entry in the 'Log File Locations' section of the file. This appender controls the default logging destination described above.atlassian-crowd.log
with the full path and file name for the required logging destination:log4j.appender.filelog.File=atlassian-crowd.log
.log4j.properties
file.The Crowd Administration Console does not give access to the CrowdID log settings. To adjust the logging levels of the CrowdID OpenID server, you will need to modify the configuration file at this location:
CROWDID-INSTALL}/crowd-openidserver-webapp/WEB-INF/classes/log4j.properties
CROWDID-WAR-INSTALL}/WEB-INF/classes/log4j.properties