syslog stops writing immediately after log rotation, after I start the system (but not after reboot), and at some other times, into my fast cgi application's log. It starts working after /etc/init.d/sysklogd restart. Please give me any hint.
Configuration:
I am using Ubuntu 8.04 lts server, Apache web server.
My (fast cgi) application uses:
Code:
#include <syslog.h>
syslog(LOG_LOCAL6|LOG_INFO, "new n= %d;\n", count);
to log some activity messages.
At the end of /etc/syslog.conf I added:
Code:
local6.=info -/var/log/apache2/myapp.log
In /etc/syslog.conf I added to each selector which contained "myapp.log":
like this:
Code:
*.*;auth,authpriv.none;local6.!=info -/var/log/syslog
and:
Code:
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none;local6.!=info -/var/log/messages