pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
Greetings, ye monks so monkey.
I have a really weird problem with Sys::Syslog. In Linux, it seems to work normally, and on OpenBSD I get nothing. No log messages, no errors, nothing.
Does anyone know why this might be? Or does anyone know a good way to get verbosity from Sys::Syslog or syslogd? I'm hoping for someone who understands the underpinnings of syslog and might know what's going on here. Since it works on Linux, I don't think it's a problem with my code.
I've tried a few different log levels and facilities.
UPDATE:#! /usr/bin/perl -w -T use strict; use Sys::Syslog qw(:standard :macros); openlog('Wibble','pid,nowait',LOG_USER) || die "Whaaaaaa\n"; syslog(LOG_ALERT,"This is a test") || die "BOO HOO\n" ;
If I specify 'unix' as the connection type, it works. So, I still don't know what the real problem was, but at least I can get on with my work...
setlogsock('unix')
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sys::Syslog Troubles
by jethro (Monsignor) on Jun 25, 2008 at 17:08 UTC | |
|
Re: Sys::Syslog Troubles
by Tanktalus (Canon) on Jun 25, 2008 at 22:35 UTC |