1 #ifndef SYSLOG_H 2 #define SYSLOG_H 3 4 #define LOG_PID 0x01 5 6 #define LOG_EMERG 0 7 #define LOG_ALERT 1 8 #define LOG_CRIT 2 9 #define LOG_ERR 3 10 #define LOG_WARNING 4 11 #define LOG_NOTICE 5 12 #define LOG_INFO 6 13 #define LOG_DEBUG 7 14 15 #define LOG_DAEMON (3<<3) 16 17 void openlog(const char *ident, int logopt, int facility); 18 void syslog(int priority, const char *fmt, ...); 19 20 #endif /* SYSLOG_H */ 21