How to configure syslog so that an applications log goes to a specific file How to configure syslog so that an applications log goes to a specific file linux linux

How to configure syslog so that an applications log goes to a specific file


According to the syslog(3) manpage, the first parameter for openlog() sets a prefix for log messages, not a filename.You can use a facility like LOG_LOCAL0 to flag your output and then configure syslogd using /etc/syslog.conf to send those logs to the file of your desire.