1Agent::Driver::Syslog(3U)ser Contributed Perl DocumentatiAognent::Driver::Syslog(3)
2
3
4

NAME

6       Log::Agent::Driver::Syslog - syslog logging driver for Log::Agent
7

SYNOPSIS

9        use Log::Agent;
10        require Log::Agent::Driver::Syslog;
11
12        my $driver = Log::Agent::Driver::Syslog->make(
13            -prefix     => prefix,
14            -facility   => "user",
15            -showpid    => 1,
16            -socktype   => "unix",
17            -logopt     => "ndelay",
18        );
19        logconfig(-driver => $driver);
20

DESCRIPTION

22       The syslog logging driver delegates logxxx() operations to syslog() via
23       the Sys::Syslog(3) interface.
24
25       The creation routine make() takes the following switches:
26
27       "-facility" => facility
28           Tell syslog() which facility to use (e.g. "user", "auth",
29           "daemon").  Unlike the Sys::Syslog(3) interface, the facility is
30           set once and for all: every logging message will use the same
31           facility.
32
33           If you wish to log something to "auth" for instance, then do so via
34           Sys::Syslog directly: there is no guarantee that the application
35           will configure its Log::Agent to use syslog anyway!
36
37       "-logopt" => syslog options
38           Specifies logging options, under the form of a string containing
39           zero or more of the words ndelay, cons or nowait.
40
41       "-prefix" => prefix
42           The prefix here is syslog's identification string.
43
44       "-showpid" => flag
45           Set to true to have the PID of the process logged. It is false by
46           default.
47
48       "-socktype" => (unix | inet)
49           Specifies the logging socket type to use. The default behaviour is
50           to use Sys:Syslog's default.
51

CHANNELS

53       All the channels go to syslog(), of course.
54

AUTHOR

56       Raphael Manfredi <Raphael_Manfredi@pobox.com>
57

SEE ALSO

59       Log::Agent::Driver(3), Log::Agent::Channel::Syslog(3).
60
61
62
63perl v5.32.1                      2021-02-15          Agent::Driver::Syslog(3)
Impressum