Log::Agent::Channel::Syslog - syslog logging channel for Log::Agent::Logger |
Log::Agent::Channel::Syslog - syslog logging channel for Log::Agent::Logger
require Log::Agent::Channel::Syslog;
my $channel = Log::Agent::Channel::Syslog->make( # Specific attributes -prefix => prefix, -facility => "user", -showpid => 1, -socktype => "unix", -logopt => "ndelay", );
The syslog logging channels directs operations to syslog()
via the
Sys::Syslog(3) interface.
The creation routine make()
takes the following switches:
-facility
=> facilitysyslog()
which facility to use (e.g. ``user'', ``auth'', ``daemon'').
Unlike the Sys::Syslog(3) interface, the facility is set once and for all:
every message logged through this channel will use the same facility.
-logopt
=> syslog options-prefix
=> prefix-showpid
=> flag-socktype
=> (unix | inet)
Raphael Manfredi <Raphael_Manfredi@pobox.com>
Log::Agent::Logger(3).
Log::Agent::Channel::Syslog - syslog logging channel for Log::Agent::Logger |