Increasing Conductor Logging

Sometimes we aren't able to capture certain logs because the conductor log rolls over, or sometimes a customer just wants the ability to collect more logs or log within a certain timeframe.

You can easily configure logging using the conf/log4j-production.properties. All conductor log configurations will be changed under the #file appender tag.

#file appender
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.layout=datameer.dap.conductor.util.logging.CustomLog4jPatternLayout
log4j.appender.file.layout.ConversionPattern=[%u] %5p [%d{yyyy-MM-dd HH:mm:ss}] (%F:%L) - %m%n
log4j.appender.file.File=logs/conductor.log
log4j.appender.file.MaxFileSize=1000KB
log4j.appender.file.MaxBackupIndex=10

INCREASE NUMBER OF LOGS KEPT

log4j.appender.file.MaxBackupIndex=10 

INCREASE LOG SIZE

log4j.appender.file.MaxFileSize=1000KB

CHANGE LOGGING TIME WINDOW

This requires a change to the #file appender:

#file appender 
#log4j.appender.file=org.apache.log4j.RollingFileAppender 
#log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 
log4j.appender.file=datameer.dap.conductor.log4j.CustodianDailyRollingFileAppender 
log4j.appender.file.layout=datameer.dap.conductor.util.logging.CustomLog4jPatternLayout 
log4j.appender.file.layout.ConversionPattern=[%u] %5p [%d{yyyy-MM-dd HH:mm:ss}] (%F:%L) - %m%n 
log4j.appender.file.File=logs/conductor.log 
#log4j.appender.file.MaxFileSize=1000KB 
#log4j.appender.file.MaxBackupIndex=10 
log4j.appender.file.MaxNumberOfDays=60 
log4j.appender.file.DatePattern='.'yyyy-MM-dd

We have commented out some of the default settings and added a few properties in for this functionality.

ACTIVATING THE CHANGES

In order to activate any changes made to these configuration files, Datameer needs to be restarted.