syslog() generates a log message
syslog(LOG_ERR, “%s failed: %d (%m)”, str, errno); syslog(LOG_NOTICE,
“%s failed: %d (%m)”, str, errno); syslog(LOG_INFO,”%s”,str);
where does it store this info?
I can not find any file in the server by the name of LOG_ERR, LOG_NOTICE,LOG_INFO.
Please suggest.
Under Linux you can find them here :
/var/log/syslog, if you run this simple program:and open a terminal and run this:
You should see something like this: