AnsweredAssumed Answered

Separate log file for each AMP and not in alfresco.log

Question asked by signjoy on Apr 5, 2018
Latest reply on Apr 6, 2018 by signjoy

Hi,

 

I have below setting in my AMP's log4j.properties file. The below setting works fine and creates a separate log file named amp_abc.log.  The only problem is the AMP specific log goes to both the files alfresco.log and amp_abc.log file.

 

Is there any way so that the logs goes only to the AMP specific log file and not in alfresco.log too.

log4j.appender.moduleLog=org.apache.log4j.DailyRollingFileAppender
log4j.appender.moduleLog.File=amp_abc.log
log4j.appender.moduleLog.layout=org.apache.log4j.PatternLayout
log4j.appender.moduleLog.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n

log4j.logger.com.abc.component=debug,moduleLog

Outcomes