RPi: Log refactor
This commit is contained in:
+16
-3
@@ -2,14 +2,27 @@
|
||||
#define LOG_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void mys_log_v(int level, const char *fmt, va_list args);
|
||||
extern void mys_log(int level, const char *fmt, ...) __attribute__((format(printf,2,3)));
|
||||
extern void logOpen(int options, int facility);
|
||||
|
||||
extern void vlogInfo(const char *fmt, va_list args);
|
||||
extern void logInfo(const char *fmt, ...) __attribute__((format(printf,1,2)));
|
||||
|
||||
extern void vlogError(const char *fmt, va_list args);
|
||||
extern void logError(const char *fmt, ...) __attribute__((format(printf,1,2)));
|
||||
|
||||
extern void vlogNotice(const char *fmt, va_list args);
|
||||
extern void logNotice(const char *fmt, ...) __attribute__((format(printf,1,2)));
|
||||
|
||||
extern void vlogDebug(const char *fmt, va_list args);
|
||||
extern void logDebug(const char *fmt, ...) __attribute__((format(printf,1,2)));
|
||||
|
||||
extern void vlogWarning(const char *fmt, va_list args);
|
||||
extern void logWarning(const char *fmt, ...) __attribute__((format(printf,1,2)));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user