Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-9799

atlassian-confluence.log not generated in Confluence 2.6 standalone

      The atlassian-confluence.log is no longer being generated in Confluence 2.6. I attempted to crash Confluence by any means necessary to check if the log file was being generated with no luck.

      The likely situation is that the log4j.properties file is not being overwritten when the standalone distribution is built. I have not yet checked whether this problem is occurs in the EAR-WAR distribution.

            [CONFSERVER-9799] atlassian-confluence.log not generated in Confluence 2.6 standalone

            CF added a comment - - edited

            log4j.properties on test box

            #####################################
            # PTS - Added to log to different file
            log4j.appender.accesslog=org.apache.log4j.RollingFileAppender
            log4j.appender.accesslog.Threshold=DEBUG
            log4j.appender.accesslog.DatePattern='.'yyyy-MM-dd
            log4j.appender.accesslog.File=${catalina.home}/logs/atlassian-confluence-access.log
            log4j.appender.accesslog.MaxFileSize=51200KB
            log4j.appender.accesslog.MaxBackupIndex=31
            log4j.appender.accesslog.layout=com.atlassian.confluence.util.PatternLayoutWithStackTrace
            log4j.appender.accesslog.layout.ConversionPattern=%d %p [%c{4}] %M %mc%n
            #####################################
            
            
            # This is the logging configuration for Confluence. This is standard log4j.configuration as
            # described at http://logging.apache.org/log4j/1.2/manual.html
            #
            # To turn more verbose logging on - change "ERROR" to "WARN" or "DEBUG"
            
            log4j.rootLogger=WARN, confluencelog, errorlog
            
            ###
            # 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.
            #
            # If you want to log to a different location uncomment the RollingFileAppender line and the File setting
            # as instructed below.
            ###
            
            
            #####################################
            # PTS - Modify values MaxFileSize, MaxBackupIndex, ConversionPattern
            #log4j.appender.confluencelog=com.atlassian.confluence.logging.ConfluenceHomeLogAppender
            # Comment the above line and uncomment the following 2 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
            log4j.appender.confluencelog.Threshold=DEBUG
            #log4j.appender.confluencelog.MaxFileSize=20480KB
            log4j.appender.confluencelog.MaxFileSize=51200KB
            #log4j.appender.confluencelog.MaxBackupIndex=5
            log4j.appender.confluencelog.MaxBackupIndex=31
            log4j.appender.confluencelog.layout=com.atlassian.confluence.util.PatternLayoutWithContext
            #log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%t] [%c{4}] %M %m%n
            log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%c{4}] %M %m%n
            #####################################
            

            Output files are saving to install folder logs which is fine. What we are trying to tune is the output of the access log. Would like to see something like:

            2010-05-07 15:42:50,934 INFO [atlassian.confluence.util.AccessLogFilter] doFilter User=cflinterman URL=http://crs03ykf/display/ADMINCNF/CNF+-+Links+Redirect+
            to+Looping+Login+Page Mem=645009-16363 151(ms) IP=10.65.91.108 
            

            In the standard log file we seem to huge blocks of wiki content being logged and we're not sure why. It would be useful to point me to a document showing all the different log parameters and what they do.

            CF added a comment - - edited log4j.properties on test box ##################################### # PTS - Added to log to different file log4j.appender.accesslog=org.apache.log4j.RollingFileAppender log4j.appender.accesslog.Threshold=DEBUG log4j.appender.accesslog.DatePattern= '.' yyyy-MM-dd log4j.appender.accesslog.File=${catalina.home}/logs/atlassian-confluence-access.log log4j.appender.accesslog.MaxFileSize=51200KB log4j.appender.accesslog.MaxBackupIndex=31 log4j.appender.accesslog.layout=com.atlassian.confluence.util.PatternLayoutWithStackTrace log4j.appender.accesslog.layout.ConversionPattern=%d %p [%c{4}] %M %mc%n ##################################### # This is the logging configuration for Confluence. This is standard log4j.configuration as # described at http: //logging.apache.org/log4j/1.2/manual.html # # To turn more verbose logging on - change "ERROR" to "WARN" or "DEBUG" log4j.rootLogger=WARN, confluencelog, errorlog ### # 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. # # If you want to log to a different location uncomment the RollingFileAppender line and the File setting # as instructed below. ### ##################################### # PTS - Modify values MaxFileSize, MaxBackupIndex, ConversionPattern #log4j.appender.confluencelog=com.atlassian.confluence.logging.ConfluenceHomeLogAppender # Comment the above line and uncomment the following 2 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 log4j.appender.confluencelog.Threshold=DEBUG #log4j.appender.confluencelog.MaxFileSize=20480KB log4j.appender.confluencelog.MaxFileSize=51200KB #log4j.appender.confluencelog.MaxBackupIndex=5 log4j.appender.confluencelog.MaxBackupIndex=31 log4j.appender.confluencelog.layout=com.atlassian.confluence.util.PatternLayoutWithContext #log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%t] [%c{4}] %M %m%n log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%c{4}] %M %m%n ##################################### Output files are saving to install folder logs which is fine. What we are trying to tune is the output of the access log. Would like to see something like: 2010-05-07 15:42:50,934 INFO [atlassian.confluence.util.AccessLogFilter] doFilter User=cflinterman URL=http: //crs03ykf/display/ADMINCNF/CNF+-+Links+Redirect+ to+Looping+Login+Page Mem=645009-16363 151(ms) IP=10.65.91.108 In the standard log file we seem to huge blocks of wiki content being logged and we're not sure why. It would be useful to point me to a document showing all the different log parameters and what they do.

            This has been resolved by the cross product team. Thanks!

            Paul Curren added a comment - This has been resolved by the cross product team. Thanks!

            Fixed this in 2.6.1

            James Dumay added a comment - Fixed this in 2.6.1

            Workaround is to change the settings in log4j.properties to look like this:

            log4j.appender.confluencelog=org.apache.log4j.RollingFileAppender
            log4j.appender.confluencelog.Threshold=DEBUG
            log4j.appender.confluencelog.File=${catalina.home}/logs/atlassian-confluence.log
            log4j.appender.confluencelog.MaxFileSize=20480KB
            log4j.appender.confluencelog.MaxBackupIndex=5
            log4j.appender.confluencelog.layout=com.atlassian.confluence.util.PatternLayoutWithContext
            log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%t] [%c

            {4}

            ] %M %m%n

            Jeremy Largman added a comment - Workaround is to change the settings in log4j.properties to look like this: log4j.appender.confluencelog=org.apache.log4j.RollingFileAppender log4j.appender.confluencelog.Threshold=DEBUG log4j.appender.confluencelog.File=${catalina.home}/logs/atlassian-confluence.log log4j.appender.confluencelog.MaxFileSize=20480KB log4j.appender.confluencelog.MaxBackupIndex=5 log4j.appender.confluencelog.layout=com.atlassian.confluence.util.PatternLayoutWithContext log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%t] [%c {4} ] %M %m%n

            Matt Ryall added a comment -

            Thanks for the report. Raised with James: https://extranet.atlassian.com/jira/browse/XPR-164.

            Matt Ryall added a comment - Thanks for the report. Raised with James: https://extranet.atlassian.com/jira/browse/XPR-164 .

              Unassigned Unassigned
              ktran Kevin Tran [Atlassian]
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: