-
Bug
-
Resolution: Fixed
-
Medium
-
5.1.5, 5.2.5, 5.4.2, 5.5.2, 5.5.3, 5.6.5, 5.7, 5.8.15
-
None
-
13
-
From Confluence version 5.2.5 to latest when you hit the diagnostic mode in the UI, all the debug logging will go to the tomcat terminal instead of the atlassian-confluence.log.
Steps to reproduce:
- Go to Confluence Admin > Logging and Profiling.
- Hit the "Diagnostics" button under Log4j Logging.
- Navigate in Confluence and make any changes you like (create/delete a space/page).
- If you open the <Confluence Home>\llogs\atlassian-confluence.log, you will only see this line:
2014-01-30 19:03:38,256 DEBUG [http-8090-1] [atlassian.confluence.logging.ConfluenceHomeLogAppender] shutdown closing appender
- Now if you check the Tomcat Terminal you will see all the debug information being generated in there:
This was done in a windows environment, however we have a customers with linux that also have the same behaviour, the logging doesn't go to catalina.out either or any of the other Confluence logs.
This works fine in Confluence version 5.2.3, but it shows this behaviour from version 5.2.5 to latest.
Work Around:
- Shutdown Confluence.
- Navigate to <Confluence Install>\confluence\WEB-INF\classes.
- Backup the log4j.properties file.
- Edit the file.
- Search for the first uncommented "log4j.logger".
- Under it add the classes you want like below example:
log4j.logger.com.atlassian.confluence.extra.jira=DEBUG log4j.logger.com.atlassian.applinks.applinks-plugin=DEBUG
- Save the file and start Confluence.
- The DEBUG will show up in atlassian-confluence log in the way it supposed to.
- Once you get the information you want, restore the log4j.properties file to it's previous version
- is duplicated by
-
CONFSERVER-36982 Set logging level as "Diagnostic" closes log appender
-
- Closed
-
- relates to
-
CONFSERVER-20948 Inconsistent behavior in log4j vs admin panel> configureLog4j.Action
-
- Closed
-
-
CONFSERVER-31823 Diagnostic logging does not return logging to application logs once disabled
-
- Closed
-
-
CONFSERVER-32751 Improve Confluence's SQL Logging button in Logging and Profiling
-
- Closed
-