https://issues.apache.org/bugzilla/show_bug.cgi?id=51152
--- Comment #1 from godson <[email protected]> 2011-05-09 12:27:34 UTC --- Hi, I'm also using log4j 1.2.16 with the companion/extras 1.1 package to allow rolling files based on time (at midnight). my log4j.properties file #log4j.rootLogger=debug, stdout, file log4j.rootLogger=off # Logging to both stdout and a file log4j.logger.com.cymfony=debug, stdout, file # Logging to the file only. This should be production configuration # to avoid overflowing stdout.log file. #log4j.logger.com.cymfony=info, file log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{HH:mm:ss} [%p] %c{1}| %m%n # NOTE: DO NOT change this appender' class, it is referenced in code # to generate unique log files for retriever by inserting the # provider and client into the file name. log4j.appender.file=org.apache.log4j.rolling.RollingFileAppender log4j.appender.file.File=logs/crs.log log4j.appender.file.RollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy log4j.appender.file.RollingPolicy.FileNamePattern=logs/crs.log.%d{yyyy-MM-dd} log4j.appender.file.layout=org.apache.log4j.TTCCLayout log4j.appender.file.layout.DateFormat=DATE Run this through VNC Viewer, Rolling files based on midnight is working fine. If i schedule through cron, Rolling files some time it's not happening. kindly help me to find the solution. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
