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.71
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
29       "STDOUT" 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.
42
43           This defaults to true.
44
45       •   utf8 (0 or 1)
46
47           If this is true, then the output will be encoded using the UTF-8
48           encoding. If you have already applied an encoding layer to the
49           relevant filehandle, "STDOUT" or "STDERR", then your output will
50           end up double-encoded if this is true.
51
52           This defaults to false.
53

SUPPORT

55       Bugs may be submitted at
56       <https://github.com/houseabsolute/Log-Dispatch/issues>.
57

SOURCE

59       The source code repository for Log-Dispatch can be found at
60       <https://github.com/houseabsolute/Log-Dispatch>.
61

AUTHOR

63       Dave Rolsky <autarch@urth.org>
64
66       This software is Copyright (c) 2023 by Dave Rolsky.
67
68       This is free software, licensed under:
69
70         The Artistic License 2.0 (GPL Compatible)
71
72       The full text of the license can be found in the LICENSE file included
73       with this distribution.
74
75
76
77perl v5.38.0                      2023-07-20          Log::Dispatch::Screen(3)
Impressum