1Agent::Channel::Syslog(U3s)er Contributed Perl DocumentatAigoennt::Channel::Syslog(3)
2
3
4

NAME

6       Log::Agent::Channel::Syslog - syslog logging channel for
7       Log::Agent::Logger
8

SYNOPSIS

10        require Log::Agent::Channel::Syslog;
11
12        my $channel = Log::Agent::Channel::Syslog->make(
13            # Specific attributes
14            -prefix     => prefix,
15            -facility   => "user",
16            -showpid    => 1,
17            -socktype   => "unix",
18            -logopt     => "ndelay",
19        );
20

DESCRIPTION

22       The syslog logging channels directs operations to syslog() via the
23       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 message logged through this channel
31           will use the same facility.
32
33       "-logopt" => syslog options
34           Specifies logging options, under the form of a string containing
35           zero or more of the words ndelay, cons or nowait.
36
37       "-prefix" => prefix
38           The prefix here is syslog's identification string.
39
40       "-showpid" => flag
41           Set to true to have the PID of the process logged. It is false by
42           default.
43
44       "-socktype" => (unix | inet)
45           Specifies the logging socket type to use. The default behaviour is
46           to use Sys:Syslog's default.
47

AUTHOR

49       Raphael Manfredi <Raphael_Manfredi@pobox.com>
50

SEE ALSO

52       Log::Agent::Logger(3).
53
54
55
56perl v5.30.1                      2020-01-30         Agent::Channel::Syslog(3)
Impressum