Originally Posted by chort
You can specify that certain programs get logged to different locations with !program
I tried this - customised to my requirements.
In my program I call openlog thus:
openlog("gse", LOG_NDELAY, LOG_USER);
then make calls to syslog such as:
syslog(LOG_INFO, "gse started");
I appended to the end of syslog.conf:
and created the two log files with
cp /dev/null /var/log/gse.log
cp /dev/null /var/log/gse.debug
The result is as if the !gse line isn't there. All the messages from my program appear in both /var/log/messages and gse.log. And all messages from everything (it seems - I don't know if it's literally everything) appear in gse.log.
My executable is called "gse" as well as being identified as "gse" in the call to openlog.
Is there something I've missed?