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   => { port => 514, proto => "udp" },
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" => options
49           Specifies the logging socket to use (protocol, destination, etc.).
50           The value given is not interpreted and passed as-is to the
51           "setlogsock()" routine in Sys::Syslog(3).
52
53           Please refer to Log::Agent::Channel::Syslog(3) for more
54           information.
55

CHANNELS

57       All the channels go to syslog(), of course.
58

AUTHOR

60       Raphael Manfredi <Raphael_Manfredi@pobox.com>
61

SEE ALSO

63       Log::Agent::Driver(3), Log::Agent::Channel::Syslog(3), Sys::Syslog(3).
64
65
66
67perl v5.34.0                      2021-07-22          Agent::Driver::Syslog(3)
Impressum