Agent::Channel::Syslog(3pm) | User Contributed Perl Documentation | Agent::Channel::Syslog(3pm) |
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 => { port => 514, type => "udp" }, -logopt => "ndelay", );
The syslog logging channels directs operations to syslog() via the Sys::Syslog(3) interface.
The creation routine make() takes the following switches:
The given options are passed without interpretation to "setlogsock()" hence refer to Sys::Sylog(3) for the exhaustive set of configuration options there.
If you run "rsyslogd" over TCP on a non-standard port 60514 for instance, you could say:
-socktype => { port => 60514, type => "tcp" }
but there are many other configuration possibilities.
Raphael Manfredi <Raphael_Manfredi@pobox.com>
2022-10-15 | perl v5.34.0 |