1Log::Dispatch::Screen(3U)ser Contributed Perl DocumentatiLoong::Dispatch::Screen(3)
2
3
4

NAME

6       Log::Dispatch::Screen - Object for logging to the screen
7

VERSION

9       version 2.27
10

SYNOPSIS

12         use Log::Dispatch;
13
14         my $log = Log::Dispatch->new(
15             outputs => [
16                 [
17                     'Screen',
18                     min_level => 'debug',
19                     stderr    => 1,
20                     newline   => 1
21                 ]
22             ],
23         );
24
25         $log->alert("I'm searching the city for sci-fi wasabi");
26

DESCRIPTION

28       This module provides an object for logging to the screen (really STDOUT
29       or STDERR).
30
31       Note that a newline will not be added automatically at the end of a
32       message by default.  To do that, pass "newline => 1".
33

CONSTRUCTOR

35       The constructor takes the following parameters in addition to the
36       standard parameters documented in Log::Dispatch::Output:
37
38       ยท   stderr (0 or 1)
39
40           Indicates whether or not logging information should go to STDERR.
41           If false, logging information is printed to STDOUT instead.  This
42           defaults to true.
43

AUTHOR

45       Dave Rolsky <autarch@urth.org>
46
48       This software is Copyright (c) 2010 by Dave Rolsky.
49
50       This is free software, licensed under:
51
52         The Artistic License 2.0
53
54
55
56perl v5.12.2                      2010-10-16          Log::Dispatch::Screen(3)
Impressum