Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
log4cplus configuration file
log4cplus.rootLogger=DEBUG, Main
log4cplus.logger.Audit=INFO, Audit
log4cplus.appender.Main=log4cplus::DailyRollingFileAppender
log4cplus.appender.Main.Schedule=DAILY
log4cplus.appender.Main.File=logs/tcu_logs.log
log4cplus.appender.Main.CreateDirs=true
log4cplus.appender.Main.Append=true
log4cplus.appender.Main.MaxBackupIndex=100
log4cplus.appender.Main.MaxFileSize=100KB
log4cplus.appender.Main.layout=log4cplus::PatternLayout
log4cplus.appender.Main.layout.ConversionPattern=%D | %-5.5p | %-25.25c | %m|%n
log4cplus.appender.Audit=log4cplus::DailyRollingFileAppender
log4cplus.appender.Audit.Schedule=DAILY
log4cplus.appender.Audit.File=logs/tcu_audit_logs.log
log4cplus.appender.Audit.CreateDirs=true
log4cplus.appender.Audit.Append=true
log4cplus.appender.Audit.MaxBackupIndex=100
log4cplus.appender.Audit.MaxFileSize=100KB
log4cplus.appender.Audit.layout=log4cplus::PatternLayout
log4cplus.appender.Audit.layout.ConversionPattern=%D | %-5.5p | %-25.25c | %m|%n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment