Details
-
Suggestion
-
Resolution: Unresolved
-
None
Description
Problem Definition
Unlike JIRA, in Crowd I am unable to change the log file name by adjusting CrowHomeLogAppender log4 properties.
In JIRA, an administrator is able to modify its log file properties, including the log file name, by making changes on JIRAHomeAppender.
In Crowd, however, an admin needs to comment Crowd's appender and use Apache's generic RollingFileAppender in order to make those changes.
Suggested Solution
To use CrowHomeLogAppender class in order to change log file name (and other properties), as JIRA does.
Workaround
If a Crowd admin wishes to change log file properties in Crowd, they need to:
- comment this line in <crowd_install_dir>/crowd_webapp/WEB-INF/classes/log4j.properties:
log4j.appender.crowdlog=com.atlassian.crowd.console.logging.CrowdHomeLogAppender
- add this line (RollingFileAppender appender class) (see CWD-5454 for more details):
log4j.appender.crowdlog=org.apache.log4j.RollingFileAppender
- add the following property to the new log appender:
log4j.appender.crowdlog.File=<new_file_name.log>
- For reference: Logging And Profiling
- Restart Crowd, so the changes can be applied
Attachments
Issue Links
- is related to
-
CWD-5454 Logging and profiling - Changing the Destination of the Crowd Log File section needs adjustment
- Gathering Interest