jffry has asked for the wisdom of the Perl Monks concerning the following question:
Sorry to post without researching first, but my mind is blown. I've been running the learn-integrate-decide-code mind loop on full blast lately. Stress at home doesn't help, either. Enough of my wimpy excuses. On to my pleading:
Does anyone have any idea how to integrate the Log:Log4perl (love this module, by the way!) logging with my exceptions in Exception:Class. That is, how could I take the output of
and put it into the 'error' attribute of my thrown exceptions? For example:$logger->error('This is a bag thing you did!');
What do I have to do? Write some sort of custom appender?MyException::SysCmd::Fail->throw( 'error' => 'This is a bad thing you did.', );
This wouldn't be a must-have. Just a nice-to-have, so I didn't code myself into a corner if this won't work out easily. Just in case you're concerned.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Integrete Exception::Class and Log:Log4perl ?
by adrianh (Chancellor) on Dec 30, 2005 at 00:41 UTC | |
by jffry (Hermit) on Jan 04, 2006 at 18:46 UTC |