1234567891011121314151617181920212223242526 |
- #ifndef __SYSLOG_H__
- #define __SYSLOG_H__
- #include "common_config.h"
- enum {
- SYSLOG_EMERGENCY = 0,
- SYSLOG_ALERT,
- SYSLOG_CRITICAL,
- SYSLOG_ERROR,
- SYSLOG_WARNING,
- SYSLOG_NOTICE,
- SYSLOG_INFORMATIONAL,
- SYSLOG_DEBUG,
- };
- #ifdef SYSLOG_ENABLE
- #include <stdint.h>
- void openlog(void);
- void syslog(uint8_t severity, char *fmt, ...);
- void syslog_str(uint8_t severity, char *msg);
- #else
- #define openlog()
- #define syslog(...)
- #define syslog_str(...)
- #endif
- #endif
|