Log::ger::Level::Like::LogAny - Define logging levels like Log::Any
version 0.001
# load before 'use Log::ger' in any package/target use Log::ger::Level::Like::LogAny;
This module changes the Log::ger levels to:
emergency => 5, alert => 6, critical => 10, crit => 10, # = critical fatal => 10, # = critical error => 20, err => 20, # = error warning => 30, warn => 30, # = warning notice => 35, info => 40, inform => 40, # = info debug => 50, trace => 60,
Note that the exact numerical constants differ from definitions in Log::Any::Adapter::Util. The numbers are adjusted so things like Log::ger::Output::Screen can show colors that are more equivalent.
The aliases names are defined as proper levels too so you get log_crit, log_err, and so on.
log_crit
log_err
Log::Any
perlancar <perlancar@cpan.org>
This software is copyright (c) 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.
To install Log::ger::Level::Like::LogAny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::ger::Level::Like::LogAny
CPAN shell
perl -MCPAN -e shell install Log::ger::Level::Like::LogAny
For more information on module installation, please visit the detailed CPAN module installation guide.