Linux log路径/var/log系统级别log syslog openlog closelog

Linux log路径/var/log系统级别log syslog openlog closelog vsylog
 
主要有两个问题:

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);

相关推荐