#####################################
# 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:#
# 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
#####################################
log4j.properties on test box
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.