09-23-05 10:55 PM
Hi,
I'm writing an app which logs two times per second during almost all
day. I have to place the logs which are generated in the archive so I
use syslog & logrotate lunching from cron. I have noticed that when the
logrotate is starting its job it makes my app unable to write (syslog)
any line. Logrotate is creating a new file and then syslog cannot write
anything to this file. If I reload the syslog daemon I can use
syslog(LOG_,MSG) again.
I have 2 questions:
1) How can I catch the info that logrotate has started its work (I have
to stop thread in my app when logrotate is working)
2) How to notice that the syslog has written to the log successfully
Any ideas about how to manage such often logging will be appreciated
Thanks in advance
Peter
[ Post a follow-up to this message ]
|