函数syslog(int priority, const char *format, ...),会根据priority的值将参数format格式输出到/var/log/目录下的相应文件中,如message,user.log,syslog。另外在format字符串中的所有"%m"会被自动转换成类似perror(errno)输出的字符串。
转载于:https://my.oschina.net/everkimage/blog/1589601
函数syslog(int priority, const char *format, ...),会根据priority的值将参数format格式输出到/var/log/目录下的相应文件中,如message,user.log,syslog。另外在format字符串中的所有"%m"会被自动转换成类似perror(errno)输出的字符串。
转载于:https://my.oschina.net/everkimage/blog/1589601