Assure1::Net::Syslog Perl library¶
Description¶
Assure1::Net::Syslog implements the intra-host syslog forwarding protocol.
The new call sets up default values, any of which can be overridden in the send call.
Keys (listed with default values) are:
Name <calling script name>
Facility local5
IncludeProcInfo 1
IncludePRI 1
Priority err
SyslogPort 514
SyslogHost 127.0.0.1
Valid Facilities are:
kern, user, mail, daemon, auth, syslog, lpr, news, uucp, cron,
authpriv, ftp, local0, local1, local2, local3, local4, local5, local6
Valid Priorities are:
emerg, alert, crit, err, warning, notice, info, debug
Based on Net::Syslog.
Synopsis¶
use Assure1::Net::Syslog;
my $syslog = new Assure1::Net::Syslog(
Facility => 'local4',
Priority => 'debug'
);
$syslog->send('see this in syslog', Priority => 'info');
Methods¶
send¶
Send the syslog message. This message can overwrite options specified for the instance.
send($message, \%options)