I want to redirect all my C-Program messages (error, informational etc.) to my own file using syslog (Linux). I am sure many would have tried and this related mostly with syslog configuration. I could forward the messages to default syslog message file "/var/log/messages" , but I want how to configure to my own file. Am I need to do anything in the C-program itself to achieve this? or the configuration has to be done just in /etc/syslog.conf alone.