[log4perl-devel] logging to different files and file rotation

2009-02-17 Thread wzhao6...@gmail.com
Hi there, What I'm trying to do here is: 1. log WARN to mainLogFile 2. log DEBUG to runMonitorLogFile 3. output to screen at level INFO 4. email at level WARN and here is the log4per.properties file: #predefined variables layout_class = Log::Log4perl::Layout::PatternLayout layout_pattern = %d %5

[log4perl-devel] Log::Dispatch::FileRotate not working with "append" mode?

2009-02-17 Thread wzhao6...@gmail.com
Hi there, Here is my log4perl.properties file: #predefined variables layout_class = Log::Log4perl::Layout::PatternLayout layout_pattern = %d %5p %F{1} %L> %m %n layout_email_pattern = %d{-MM-dd HH:mm:ss} [%F{1}:%c{1}:%L] %5p> %m%n log_file_appender = Log::Dispatch::FileRotate #log4perl categ

Re: [log4perl-devel] Log::Dispatch::FileRotate not working with "append" mode?

2009-02-18 Thread wzhao6...@gmail.com
estart of the script. It's not rotating anymore. What I want is: continuous logging, and log rotation at midnight.Thanks for your help! David On Tue, Feb 17, 2009 at 4:41 PM, Mike Schilli wrote: > On Tue, 17 Feb 2009, wzhao6...@gmail.com wrote: > > I'd like the main.log t