How can i use a similar tactic on our confluence logs:
<Appenders>
<RollingFile name="file" fileName="${sys:aomewhere.home}${sys:file.separator}logs${sys:file.separator}api.log"
filePattern="${sys:somewhere.home}${sys:file.separator}logs${sys:file.separator}archive${sys:file.separator}api-%d{yyyy-MM-dd}.log.gz">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n" />
<TimeBasedTriggeringPolicy />
<DefaultRolloverStrategy max="10"/>
</RollingFile>
</Appenders>
Hi Drew,
This can be done by editing the log4j.properties file
/opt/atlassian/confluence/confluence/WEB-INF/classes/log4j.properties
an example:
log4j.appender.confluencelog=com.atlassian.confluence.logging.ConfluenceHomeLogAppender
log4j.appender.confluencelog.File=/opt/var-atlassian/application-data/confluence/logs/atlassian-confluence.log
log4j.appender.confluencelog.Threshold=DEBUG
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.