summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 21:57:45 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 21:57:45 +0200
commit16801e901e87f4ca0c83ea8c09df1ab3d344129e (patch)
tree09c3a711afa32696f2545fd534abb324d151569b /log.h
parenta04f58d6cb678a574e85a26c453aeb6c7884bb93 (diff)
log: rework logging subsystem to support syslog and kmsg output
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,