Don't ask to ask, just ask | |
PerlMonks |
Re: Is there some standard for logging from within the modules?by Sixtease (Friar) |
on Nov 17, 2009 at 09:31 UTC ( [id://807637]=note: print w/replies, xml ) | Need Help?? |
I have just come across the same problem. The way I solved it is that I simply created a log method in my module and I pass the messages to it. The method stores the messages in the object. It is fairly easy for users to redefine the method (directly or by subclassing).
use strict; use warnings; print "Just Another Perl Hacker\n";
In Section
Seekers of Perl Wisdom
|
|