Log::Any::App (2)
Following up on my previous post, I've just uploaded Log::Any::App to CPAN.
Do you write or use modules that use Log::Any? Or, do you want to use Log::Any conveniently in an application? Now you can just do this:
% perl -MLog::Any::App -MOtherModuleThatUsesLogAny -e ...
and the logs will be displayed to screen. The default level is WARN, but if you want to debug things:
% DEBUG=1 perl -MLog::Any::App ...
or if you want to quiet things down:
% LOGLEVEL=error perl -MLog::Any::App ...
If you put 'use Log::Any::App' in your script, when run it will by default log to file too (~/prog.log or /var/log/prog.log). It can even automatically log to syslog.
Zero-conf. No more long incantation.
Please tell me what you think.
Leave a comment