Subject: | Sys-Syslog-0.18 and SunOS |
Date: | Mon, 16 Jul 2007 15:17:42 -0400 |
To: | bug-Sys-Syslog [...] rt.cpan.org |
From: | Bert Corley <corleyb [...] spawar.navy.mil> |
Distribution name and version: Sys-Syslog-0.18
Perl version: 5.8.8
Operating System vendor and version: SunOS 5.9
Description: When executing the code below the host entry is recorded
in SysLog as "<30>Jul" and the message entry as "14 01:06:05
SomeProgram: Some Message". Consequently, the datetime is recorded as
"2007-07-14 01:06:05". Also, apparently this is an issue with SunOS as
the same code, module version, and Perl version work on various versions
of Linux that I've tried. Also, I've also tried just
"setlogsock(['stream']);" below as well since the documentation states
"For example Solaris and IRIX system may prefer 'stream' instead of 'unix'".
use Sys::Syslog qw(:DEFAULT setlogsock);
setlogsock(['unix','stream']);
openlog('SomeProgram', '', 'user');
syslog('info', 'Some Message');
closelog;