cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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 project.properties file where also console related log are there. If any one have answer please provide.Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

tylermac
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you talking about the tomcat logs (e.g. /log/tomcat/console-YYYYMMDD.log? If that's the one you're talking about these are configured in your wrapper*.conf files:

 wrapper.logfile=${tomcat.wrapper.logfile}
 wrapper.logfile.format=LPDZM
 wrapper.logfile.loglevel=INFO
 wrapper.logfile.maxfiles=365
 wrapper.logfile.rollmode=DATE
 
 wrapper.syslog.loglevel=NONE