The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Log::ger::Manual::ForLogDispatchouli - Log::ger for Log::Dispatch users

VERSION

version 0.028.005

WHY LOG::DISPATCHOULI

Log::Dispatchouli is most known as the logging system used by Dist::Zilla, which is also written by RJBS.

It is a convenient package that lets you log to file, screen, as well as syslog. It uses Log::Dispatch output modules as the backend, hence the name. Some options exist to configure the formatting. It uses String::Flogger to format the message string.

WHY NOT LOG::DISPATCHOULI

Too few levels (only normal, normal+die (fatal), and debug).

You cannot add more or custom outputs.

WHY LOG::GER OVER LOG::DISPATCHOULI

Log::ger encourages separation of producers and consumers, so in modules when logging you don't have to deal with setting up level and outputs.

Log::ger can be used in procedural style in addition to OO style. Aside from preference, this gives the benefit of being able to optimize away unneeded logging statements to avoid runtime overhead (see Log::ger::Plugin::OptAway).

Log::ger is faster and has smaller startup overhead.

FAQ

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019, 2018, 2017 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.