1Event::RPC::Logger(3) User Contributed Perl DocumentationEvent::RPC::Logger(3)
2
3
4

NAME

6       Event::RPC::Logger - Logging facility for Event::RPC
7

SYNOPSIS

9         use Event::RPC::Server;
10         use Event::RPC::Logger;
11
12         my $server = Event::RPC::Server->new (
13             ...
14             logger => Event::RPC::Logger->new(
15                 filename  => "/var/log/myserver.log",
16                 fh_lref   => [ $fh, $sock ],
17                 min_level => 2,
18             ),
19             ...
20         );
21
22         $server->start;
23

DESCRIPTION

25       This modules implements a simple logging facility for the Event::RPC
26       framework. Log messages may be written to a specific file and/or a
27       bunch of filehandles, which may be sockets as well.
28

CONFIGURATION OPTIONS

30       This is a list of options you can pass to the new() constructor:
31
32       filename
33           All log messages are appended to this file.
34
35       fh_lref
36           All log messages are printed into this list of filehandles.
37
38       min_level
39           This is the minimum log level. Output of messages with a lower
40           level is suppressed. This option may be altered using
41           set_min_level() even in a running server.
42

METHODS

44       $logger->log ( [$level, ] $msg )
45           The log() method does the actual logging. Called with one argument
46           the messages gets the default level of 1. With two argumens the
47           first is the level for the message.
48
49       $logger->add_fh ( $fh )
50           This adds a filehandle to the internal list of filhandles all log
51           messages are written to.
52
53       $logger->remove_fh ( $fh )
54           Removes a filehandle.
55

AUTHORS

57         Jörn Reder <joern AT zyn.de>
58
60       Copyright (C) 2005-2015 by Jörn Reder <joern AT zyn.de>.
61
62       This library is free software; you can redistribute it and/or modify it
63       under the same terms as Perl itself.
64
65
66
67perl v5.32.1                      2021-01-27             Event::RPC::Logger(3)
Impressum