in reply to Log::Log4perl syslog wall best practice
I don't know I'm probably missing something here but FWIW I've had good luck with Sys::Syslog
#!/usr/bin/perl -w # demonstration of writing to syslog from perl ## use strict; use warnings; use diagnostics; use Sys::Syslog qw(:DEFAULT setlogsock); my $fac = 'local1'; openlog( $0, 'cons,pid', $fac); syslog( 'notice', 'logging an event: %d', time); closelog();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Log::Log4perl syslog wall best practice
by codeacrobat (Chaplain) on Mar 20, 2012 at 19:27 UTC |