Your skill will accomplish
what the force of many cannot
Sys::Syslog and LOG_EMERGby pileofrogs (Priest)
|on Aug 11, 2006 at 22:54 UTC||Need Help??|
pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use Sys::Syslog to log an emergency condition, but LOG_EMERG,"emergency","emerg" or even '0' doesn't work.
I'm on linux.
produces this error:
I've tried lots of other log levels, like LOG_ALERT and LOG_NOTICE, and they work fine.
I can use the command line "logger" tool like this:
And it works fine.
Does anyone know what's going on here?
Update: openlog() doesn't help.. see below
Another Update: I'm a total dufus. I have an old version of Sys::Syslog.