in reply to Sys::Syslog to my file

but it isn't working
How?
Is there exists not so ugly way?
I would think the documented way would be the not so ugly way. If that's not working for you, and you've got the latest version of the module, then contact the maintainer and file a bug report (or just fix it).

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.

Replies are listed 'Best First'.
Re: Re: Sys::Syslog to my file
by powerman (Friar) on May 23, 2004 at 14:05 UTC
    $ perl -e 'use Sys::Syslog qw(:DEFAULT setlogsock); setlogsock "stream", ".lib/log"; openlog "onliner", "pid", "user"; syslog "warning", "test=%d", 15;'
    stream /dev/conslog is not writable at -e line 1
    no connection to syslog available at -e line 1

    $ perl -e 'use Sys::Syslog qw(:DEFAULT setlogsock); setlogsock "unix", ".lib/log"; openlog "onliner", "pid", "user"; syslog "warning", "test=%d", 15;'
    unix passed to setlogsock, but path not available at -e line 1

    $ perl -e 'use Sys::Syslog qw(:DEFAULT setlogsock); sub Sys::Syslog::_PATH_LOG {".lib/log"} setlogsock "unix"; openlog "onliner", "pid", "user"; syslog "warning", "test=%d", 15;'
    no errors, message sent to .lib/log socket