SYNOPSIS

 use Log::Agent;
 require Log::Agent::Driver::Syslog;

 my $driver = Log::Agent::Driver::Syslog->make(
     -prefix     => prefix,
     -facility   => "user",
     -showpid    => 1,
     -socktype   => "unix",
     -logopt     => "ndelay",
 );
 logconfig(-driver => $driver);

DESCRIPTION

The syslog logging driver delegates logxxx() operations to syslog() via the Sys::Syslog\|(3) interface.

The creation routine make() takes the following switches: Tell syslog() which facility to use (e.g. \*(L"user\*(R", \*(L"auth\*(R", \*(L"daemon\*(R"). Unlike the Sys::Syslog\|(3) interface, the facility is set once and for all: every logging message will use the same facility. If you wish to log something to \*(L"auth\*(R" for instance, then do so via Sys::Syslog directly: there is no guarantee that the application will configure its Log::Agent to use syslog anyway! Specifies logging options, under the form of a string containing zero or more of the words ndelay, cons or nowait. The prefix here is syslog's identification string. Set to true to have the \s-1PID\s0 of the process logged. It is false by default. Specifies the logging socket type to use. The default behaviour is to use Sys:Syslog's default.

CHANNELS

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

AUTHOR

Raphael Manfredi <[email protected]>

RELATED TO Log::Agent::Driver::Syslog…

Log::Agent::Driver\|(3), Log::Agent::Channel::Syslog\|(3).