I’d like to include logging in a Perl module I am writing, but maintain portability so that applications that use it are not bound to a specific logging mechanism, such as Log::Log4Perl.
I’ve considered;
- Logging to STDERR and leaving it to the application to redirect these messages to it’s own logging mechanism (as mentioned in the Log::Log4Perl FAQ).
- Including no logging in the module at all.
I suspect there is a better way.
Log::Any