Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: syslog problems

by rr (Sexton)
on Oct 24, 2002 at 15:57 UTC ( #207760=note: print w/replies, xml ) Need Help??


in reply to syslog problems

Try doing your connection and initial test to syslog in an eval block. Then check $@ for an error. This will allow you to continue operation if syslog is not down. You can also create a generic log subroutine that eval's every syslog operation.
sub log { eval { syslog($_[0], $_[1]); }; if ($@) { print STDERR "Syslog error: $@ $!\n"; }
BTW, it would be helpfull if you would post the OS and version, as well as the errors your program crashes with. Also the contents of $! if possible.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://207760]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2022-07-04 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?