1Level(3)              User Contributed Perl Documentation             Level(3)
2
3
4

NAME

6       Log::Log4perl::Level - Predefined log levels
7

SYNOPSIS

9         use Log::Log4perl::Level;
10         print $ERROR, "\n";
11
12         # -- or --
13
14         use Log::Log4perl qw(:levels);
15         print $ERROR, "\n";
16

DESCRIPTION

18       "Log::Log4perl::Level" simply exports a predefined set of Log4perl log
19       levels into the caller's name space. It is used internally by
20       "Log::Log4perl". The following scalars are defined:
21
22           $OFF
23           $FATAL
24           $ERROR
25           $WARN
26           $INFO
27           $DEBUG
28           $TRACE
29           $ALL
30
31       "Log::Log4perl" also exports these constants into the caller's names‐
32       pace if you pull it in providing the ":levels" tag:
33
34           use Log::Log4perl qw(:levels);
35
36       This is the preferred way, there's usually no need to call
37       "Log::Log4perl::Level" explicitely.
38
39       The numerical values assigned to these constants are purely virtual,
40       only used by Log::Log4perl internally and can change at any time, so
41       please don't make any assumptions.
42
43       If the caller wants to import these constants into a different names‐
44       pace, it can be provided with the "use" command:
45
46           use Log::Log4perl::Level qw(MyNameSpace);
47
48       After this $MyNameSpace::ERROR, $MyNameSpace::INFO etc.  will be
49       defined accordingly.
50

SEE ALSO

AUTHOR

53       Mike Schilli, <m@perlmeister.com>
54
56       Copyright 2002 by Mike Schilli
57
58       This library is free software; you can redistribute it and/or modify it
59       under the same terms as Perl itself.
60
61
62
63perl v5.8.8                       2002-07-10                          Level(3)
Impressum