1Log::Dispatch::Handle(3U)ser Contributed Perl DocumentatiLoong::Dispatch::Handle(3)
2
3
4
6 Log::Dispatch::Handle - Object for logging to IO::Handle classes
7
9 version 2.70
10
12 use Log::Dispatch;
13
14 my $log = Log::Dispatch->new(
15 outputs => [
16 [
17 'Handle',
18 min_level => 'emerg',
19 handle => $io_socket_object,
20 ],
21 ]
22 );
23
24 $log->emerg('I am the Lizard King!');
25
27 This module supplies a very simple object for logging to some sort of
28 handle object. Basically, anything that implements a "print()" method
29 can be passed the object constructor and it should work.
30
32 The constructor takes the following parameters in addition to the
33 standard parameters documented in Log::Dispatch::Output:
34
35 • handle ($)
36
37 The handle object. This object must implement a "print()" method.
38
40 Bugs may be submitted at
41 <https://github.com/houseabsolute/Log-Dispatch/issues>.
42
43 I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
44
46 The source code repository for Log-Dispatch can be found at
47 <https://github.com/houseabsolute/Log-Dispatch>.
48
50 Dave Rolsky <autarch@urth.org>
51
53 This software is Copyright (c) 2020 by Dave Rolsky.
54
55 This is free software, licensed under:
56
57 The Artistic License 2.0 (GPL Compatible)
58
59 The full text of the license can be found in the LICENSE file included
60 with this distribution.
61
62
63
64perl v5.32.1 2021-01-27 Log::Dispatch::Handle(3)