Subject: | LOG_EMERG log level reports an error |
logging to the "emerg" level breaks
bug 17518 is similar, and says it is fixed in 0.14, but I am using
Sys::Syslog version 0.29-1+b2 on debian and it still appears to be
broken.
Sys::Syslog version - 0.29-1+b2 on debian
Perl version: perl 5, version 14, subversion 2 (v5.14.2) built for
x86_64-linux-gnu-thread-multi
$ uname -a
Linux babylon 3.1.0-1-amd64 #1 SMP Tue Jan 10 05:01:58 UTC 2012 x86_64
GNU/Linux
Example code:
#!/usr/bin/perl
use Sys::Syslog;
openlog("perl", "pid,ndelay", "local0");
syslog("EMERG","test output");
Result:
syslog: level must be given at /var/tmp/syslog_test.pl line 4
Every other log level works
(alert, crit, err, warning, notice, info, debug)