Syslog
The Net Syslog library implements the intra-host syslog forwarding protocol.
The new call sets up default values, any of which can be overridden in the send call.
The keys and their 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 the original 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
The Net Syslog library contains the method described below.
send
Sends the syslog message. This message can overwrite options specified for the instance.
send($message, \%options)