From: Manoj W. <ma...@ho...> - 2009-01-26 09:15:41
|
Dear All, I am a new user of log4perl and to this mailing list. I am working on a perl project - want to incorporate Log4perl as main logging framework. The requirement is as below: 1) Wrapper over Log4perl 2) System-wide Logging to File & Screen in INFO mode 3) DEBUG mode should have an option of either writing to Screen or debuglog file or both 4) Option to replicate debug log messages in system-wide logging if debug log is turned of. Creating a package and using a log4 conf file with rootLogger in INFO mode and Logfile and Screen as appenders take care of requirement 1&2 however option third and fourth is tricky to incorporate. I have tried Filter match etc but cannot seem to get my head around effectively incorporating requirement 3 & 4. Any suggestions would be greatly appreciate. Thanks in advance. Cheers MSW _________________________________________________________________ Plug in to the MSN Tech channel for a full update on the latest gizmos that made an impact. http://computing.in.msn.com/ |