1Log::Dispatch::Perl(3)User Contributed Perl DocumentationLog::Dispatch::Perl(3)
2
3
4

NAME

6       Log::Dispatch::Perl - Use core Perl functions for logging
7

SYNOPSIS

9        use Log::Dispatch::Perl ();
10
11        my $dispatcher = Log::Dispatch->new;
12        $dispatcher->add( Log::Dispatch::Perl->new(
13         name      => 'foo',
14         min_level => 'info',
15         action    => { debug     => '',
16                        info      => '',
17                        notice    => 'warn',
18                        warning   => 'warn',
19                        error     => 'die',
20                        critical  => 'die',
21                        alert     => 'croak',
22                        emergency => 'croak',
23                      },
24        ) );
25
26        $dispatcher->warning( "This is a warning" );
27

VERSION

29       This documentation describes version 0.04.
30

DESCRIPTION

32       The "Log::Dispatch::Perl" module offers a logging alternative using
33       standard Perl core functions.  It allows you to fall back to the common
34       Perl alternatives for logging, such as "warn" and "cluck".  It also
35       adds the possibility for a logging action to halt the current
36       environment, such as with "die" and "croak".
37

POSSIBLE ACTIONS

39       The following actions are currently supported (in alphabetical order):
40
41   (absent or empty string or undef)
42       Indicates no action should be executed.  Default for log levels "debug"
43       and "info".
44
45   carp
46       Indicates a "carp" action should be executed.  See "carp" in Carp.
47       Halts execution.
48
49   cluck
50       Indicates a "cluck" action should be executed.  See "cluck" in Carp.
51       Does not halt execution.
52
53   confess
54       Indicates a "confess" action should be executed.  See "confess" in
55       Carp.  Halts execution.
56
57   croak
58       Indicates a "croak" action should be executed.  See "croak" in Carp.
59       Halts execution.
60
61   die
62       Indicates a "die" action should be executed.  See "die" in perlfunc.
63       Halts execution.
64
65   warn
66       Indicates a "warn" action should be executed.  See "warn" in perlfunc.
67       Does not halt execution.
68

REQUIRED MODULES

70        Log::Dispatch (1.16)
71

AUTHOR

73       Elizabeth Mattijsen, <liz@dijkmat.nl>.
74
75       Please report bugs to <perlbugs@dijkmat.nl>.
76
78       Copyright (c) 2004, 2012 Elizabeth Mattijsen <liz@dijkmat.nl>. All
79       rights reserved.  This program is free software; you can redistribute
80       it and/or modify it under the same terms as Perl itself.
81
82
83
84perl v5.28.1                      2012-04-06            Log::Dispatch::Perl(3)
Impressum