For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2006 > Perl/Syslog: openlog is very slow in sending syslog message









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Perl/Syslog: openlog is very slow in sending syslog message
Ravi Malghan

2006-03-21, 9:58 pm

Hi: I am trying to use the following lines in a
program where I want to log syslog messages.
==========
openlog($zone, 'ndelay','local7');
syslog('debug', $log);
closelog;
==========

But the function openlog takes 30-40 seconds to
complete. Any idea why it takes this long and also if
there is a way to make it log immediately? If I run
the logger command from the shell prompt, it logs
immediately.

TIA
Ravi

________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com