diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:57:45 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:57:45 +0200 |
commit | 16801e901e87f4ca0c83ea8c09df1ab3d344129e (patch) | |
tree | 09c3a711afa32696f2545fd534abb324d151569b /log.h | |
parent | a04f58d6cb678a574e85a26c453aeb6c7884bb93 (diff) |
log: rework logging subsystem to support syslog and kmsg output
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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, |