wellsja has asked for the wisdom of the Perl Monks concerning the following question:

Hi All

I am currently using log4perl ans am using Sys::Syslog.pm and am having an issue writing to the syslogd daemon. I have done some reasearch relating to this issue and what I have found is that some it is a bug in the perl module that by deafult it tries andwrites to PATH_LOG and this does not exist on solaris.

This problem seems to be related to solaris 8 and above, I was wondering if anyone has come accross the same issue and has found a work around. Thanks in advance James
  • Comment on Sys:Syslog on Solaris 8 using perl 5.8.0 and above problem

Replies are listed 'Best First'.
Re: Sys:Syslog on Solaris 8 using perl 5.8.0 and above problem
by PodMaster (Abbot) on May 20, 2004 at 16:40 UTC
    There is no module called Sys::Syslog.pm. Package names can't contain dots.

    Have you tried calling setlogsock?

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Sys:Syslog on Solaris 8 using perl 5.8.0 and above problem
by greenFox (Vicar) on May 21, 2004 at 02:06 UTC
    I have used Sys::Syslog on Solaris and never had any problem with it. Post a test case demonstrating the behaviour and I will try it over here for you. It's always a good idea to post a test case any-way- sometimes the very act of creating a test case will show you where the bug is and if not it makes it easy for us to run your code and confirm or deny what you are seeing, without a test case it is just guess work.

    --
    Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho