Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Description
Logging and Profiling for Crowd has a "Changing the Destination of the Crowd Log File", that mentions the following, when editing log4.properties file:
- Look for the org.apache.log4j.RollingFileAppender entry in the 'Log File Locations' section of the file. This appender controls the default logging destination described above.
The issue is, the class {{org.apache.log4j.RollingFileAppender }}does not exist in the default log4j.properties file. That leads to a confusion on how to properly adjust logging settings.
Documentation link: https://confluence.atlassian.com/crowd/logging-and-profiling-24248601.html
If possible, please add detailed instructions on how to change the log file destination and also how to create a new file appender.
An idea would be to use Confluence's log4j.properties file header below as starting point:
### # LOGGING LOCATION AND APPENDER # # Here we define the default appender which after bootstrap will log to logs/atlassian-confluence.log # within your configured confluence.home. Prior to that, logging will be to the console. # # Use the ConsoleAppender for development to leave the logging configuration up to the app server/IDEA. # # If you want to log to a different location uncomment the RollingFileAppender line and the File setting # as instructed below. ### log4j.appender.confluencelog=com.atlassian.confluence.logging.ConfluenceHomeLogAppender # Comment the above line and uncomment the following 2 lines if you want to log to a specific location #log4j.appender.confluencelog=org.apache.log4j.RollingFileAppender #log4j.appender.confluencelog.File=${catalina.home}/logs/atlassian-confluence.log
Attachments
Issue Links
- relates to
-
CWD-5457 As an Admin, I want to rely on CrowdHomeLogAppender to change Crowd's log file name
- Gathering Interest