From: Aldrich, T. <tim...@cs...> - 2004-09-16 20:38:45
|
> Here's a way to approach the problem using a separate log category. > It's probably a matter of taste when choosing between this or > creating a > new log level. Although this way does make pretty clear in > the program > code that the purpose and destination of the two log messages > is different. > > $logger = Log::Log4perl::init('some.category'); > $statuslogger = Log::Log4perl::init('status'); > > $logger->debug("here is a regular debug message"); > > $status_logger->info("program ended at @{[scalar localtime]}"); > schweet ! Thank you so much ! now I don't feel naughty for using depricated code. R/S Timothy Aldrich --------------- -- ============================================================================== This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure. ============================================================================== |