| Agent::Driver::Syslog(3pm) | User Contributed Perl Documentation | Agent::Driver::Syslog(3pm) |
Log::Agent::Driver::Syslog - syslog logging driver for Log::Agent
use Log::Agent;
require Log::Agent::Driver::Syslog;
my $driver = Log::Agent::Driver::Syslog->make(
-prefix => prefix,
-facility => "user",
-showpid => 1,
-socktype => { port => 514, proto => "udp" },
-logopt => "ndelay",
);
logconfig(-driver => $driver);
The syslog logging driver delegates logxxx() operations to syslog() via the Sys::Syslog(3) interface.
The creation routine make() takes the following switches:
If you wish to log something to "auth" 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!
Please refer to Log::Agent::Channel::Syslog(3) for more information.
All the channels go to syslog(), of course.
Raphael Manfredi <Raphael_Manfredi@pobox.com>
Log::Agent::Driver(3), Log::Agent::Channel::Syslog(3), Sys::Syslog(3).
| 2022-10-15 | perl v5.36.0 |