1Net::Server::Log::Log::ULsoegr4pCeornlt(r3i)buted Perl DNoectu:m:eSnetravteiro:n:Log::Log::Log4perl(3)
2
3
4

NAME

6       Net::Server::Log::Log::Log4perl - log via Log4perl
7

SYNOPSIS

9           use base qw(Net::Server::PreFork);
10
11           __PACKAGE__->run(
12               log_file => 'Log::Log4perl',
13               log4perl_conf => '/path/to/my/log4perl.conf',
14               log4perl_logger => 'myapp',
15           );
16

DESCRIPTION

18       This module provides Log::Log4perl style logging to the Net::Server
19       system.
20

CONFIGURATION

22       log_file
23           To begin using Log::Log4perl logging, simply set the Net::Server
24           log_file configuration parameter to "Log::Log4perl".
25
26           If the magic name "Log::Log4perl" is used, all logging will be
27           directed to the Log4perl system.  If used, the "log4perl_conf",
28           "log4perl_poll", "log4perl_logger" may also be defined.
29
30       log4perl_conf
31           Only available if "log_file" is equal to "Log::Log4perl".  This is
32           the filename of the log4perl configuration file - see
33           Log::Log4perl. If this is not set, will die on startup. If the file
34           is not readable, will die.
35
36       log4perl_poll
37           If set to a value, will initialise with
38           Log::Log4perl::init_and_watch with this polling value. This can
39           also be the string "HUP" to re-read the log4perl_conf when a HUP
40           signal is received. If set to 0, no polling is done. See
41           Log::Log4perl for more details.
42
43       log4perl_logger
44           This is the facility name. Defaults to "Net::Server".
45

DEFAULT ARGUMENTS FOR Net::Server

47       The following arguments are available in the default "Net::Server" or
48       "Net::Server::Single" modules.  (Other personalities may use additional
49       parameters and may optionally not use parameters from the base class.)
50
51           Key               Value                    Default
52
53           ## log4perl parameters (if log_file eq Log::Log4perl)
54           log4perl_conf     "filename"               will die if not set
55           log4perl_poll     number or HUP            0 (no polling)
56           log4perl_logger   "name"                   "Net::Server"
57

METHODS

59       "initialize"
60           This method is called during the initilize_logging method of
61           Net::Server.  It returns a single code ref that will be stored
62           under the log_function property of the Net::Server object.  That
63           code ref takes log_level and message as arguments and calls the
64           initialized log4perl system.
65

LICENCE

67       Distributed under the same terms as Net::Server
68
69
70
71perl v5.26.3                      2017-08-10Net::Server::Log::Log::Log4perl(3)
Impressum