|There's more than one way to do things|
trying to extend Log::Log4perlby mifflin (Curate)
|on Sep 03, 2009 at 18:19 UTC||Need Help??|
mifflin has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to extend Log::Log4perl so that I can trap all messages for a process and, at the end, format them all nicely in an email. The example I have below only deals with error messages to more simply demonstrate my issue.
I'm using perl 5.8.2 and Log::Log4perl 1.22
Here is my logger package:
Here is my test program:
Here is a run of my test program showing two errors:
The error on line 25 in MyLogger is the call the SUPER::error, which somehow cannot be found. Also there is some issue with the way I'm implementing this which causes Log4perl to not find a DESTROY method. What am I missing here?