- or download this
local2.* /var/log/your_log_name
- or download this
use Sys::Syslog qw(:DEFAULT setlogsock);
- or download this
sub syslog_event {
my ( $type, $message ) = @_;
...
return();
} # END syslog_event
- or download this
syslog_event( 'info', 'daemon starting' );
- or download this
man 3 syslog