Log::Log4perl::Level - Predefined log levels
use Log::Log4perl::Level; print $ERROR, "\n"; # => "3"
This package simply exports a predefined set of Log4perl log levels to the caller's name space. After
use Log::Log4perl::Level;
the following scalar are defined:
$OFF => 0 $FATAL => 0 $ERROR => 3 $WARN => 4 $INFO => 6 $DEBUG => 7 $ALL => 7
If the caller wants to import these constants into a different namespace, it can be provided with the use command:
use
use Log::Log4perl::Level qw(Level);
After this $Level::ERROR, $Level::INFO etc. will be defined accordingly.
$Level::ERROR
$Level::INFO
Mike Schilli, <m@perlmeister.com>
Copyright 2002 by Mike Schilli
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Log::Log4perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Log4perl
CPAN shell
perl -MCPAN -e shell install Log::Log4perl
For more information on module installation, please visit the detailed CPAN module installation guide.