|
Dear List:
Tks for your help.
I make a big mistake.I typed
>program_name
but I didnt assign the precise path,so other program with
the same name was executed
syslog() is easy & convient to use
:
use the simplest setting said by "man
syslog.conf" *.info /var/log/messages
add functions in your code :
#include<syslog.h>
openlog(..);
syslog(...);
closelog(...);
Your message will be recorded to
log-file.
Bestregards'
Henry
|
