Skip to Content
Former Member
May 04, 2016 at 12:44 PM

How to role console log using file setting. I have done this changes but its getting rolled but only 1 time.


log4j.appender.CONSOLE=org.apache.log4j.DailyRollingFileAppender log4j.appender.CONSOLE.Target=System.out log4j.appender.CONSOLE.File=${HYBRIS_LOG_DIR}/tomcat/console.log log4j.appender.CONSOLE.ImmediateFlush=true log4j.appender.CONSOLE.Threshold=DEBUG log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.DatePattern='-'yyyy-MM-dd'.log' log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p [%X{RemoteAddr}] (%X{Tenant}) [%c] %m%n log4j.rootLogger=debug,CONSOLE

This is what i have done. I think in this properties are overridden by file where also console related log are there. If any one have answer please provide.Thanks in advance.