1:linux系统log的路径 /var/log
2: 系统级别log API:
#include
void openlog(const char *ident, int option, int facility);
void syslog(int priority, const char *format, ...);
void closelog(void);
#include
void vsyslog(int priority, const char *format, va_list ap);