summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'log.h')
-rw-r--r--log.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/log.h b/log.h
index 232798afc2..d6aa472a24 100644
--- a/log.h
+++ b/log.h
@@ -26,6 +26,22 @@
#include "macro.h"
+typedef enum LogTarget{
+ LOG_TARGET_CONSOLE,
+ LOG_TARGET_SYSLOG,
+ LOG_TARGET_KMSG,
+ _LOG_TARGET_MAX,
+ _LOG_TARGET_INVALID = -1
+} LogTarget;
+
+void log_set_target(LogTarget target);
+void log_set_max_level(int level);
+
+void log_close_kmsg(void);
+int log_open_kmsg(void);
+void log_close_syslog(void);
+int log_open_syslog(void);
+
void log_meta(
int level,
const char*file,