syslog()使用和例程
发布时间
阅读量:
阅读量
man手册
通过在命令行中输入man openlog即可查阅相关文档;内容阐述得极为详尽,仔细阅读后便能充分理解其含义。
NAME
closelog, openlog, syslog, vsyslog - send messages to the system logger
SYNOPSIS
#include <syslog.h>
void openlog(const char *ident, int option, int facility);
void syslog(int priority, const char *format, ...);
void closelog(void);
void vsyslog(int priority, const char *format, va_list ap);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
vsyslog():
Since glibc 2.19:
_DEFAULT_SO
全部评论 (0)
还没有任何评论哟~
