That is, how could I take the output of $logger->error('This is a bag thing you did!'); and put it into the 'error' attribute of my thrown exceptions?
Personally I would tend to do the reverse. As a developer I wouldn't expect a logging statement to throw an exception. Instead I would override throw() in your Exception::Class subclass to do some logging.
In reply to Re: Integrete Exception::Class and Log:Log4perl ?
by adrianh
in thread Integrete Exception::Class and Log::Log4perl ?
by jffry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |