diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-12 04:34:31 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-12 04:34:31 +0100 |
commit | 5ba081b0fb02380cee4c2ff5bc7e05f869eb8415 (patch) | |
tree | 88c9c73d7b1f605bf984c6875d4099adc5e9875e /src/log.h | |
parent | journal: add SELinux context to all logged messages (diff) | |
download | systemd-5ba081b0fb02380cee4c2ff5bc7e05f869eb8415.tar.xz systemd-5ba081b0fb02380cee4c2ff5bc7e05f869eb8415.zip |
log: make internal log api log directly to the journal
Diffstat (limited to '')
-rw-r--r-- | src/log.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -27,14 +27,14 @@ #include "macro.h" -/* If set to SYSLOG and /dev/log can not be opened we fall back to - * KSMG. If KMSG fails, we fall back to CONSOLE */ typedef enum LogTarget{ LOG_TARGET_CONSOLE, LOG_TARGET_KMSG, + LOG_TARGET_JOURNAL, + LOG_TARGET_JOURNAL_OR_KMSG, LOG_TARGET_SYSLOG, LOG_TARGET_SYSLOG_OR_KMSG, - LOG_TARGET_AUTO, /* console if stderr is tty, SYSLOG_OR_KMSG otherwise */ + LOG_TARGET_AUTO, /* console if stderr is tty, JOURNAL_OR_KMSG otherwise */ LOG_TARGET_NULL, _LOG_TARGET_MAX, _LOG_TARGET_INVALID = -1 @@ -60,6 +60,7 @@ void log_close(void); void log_forget_fds(void); void log_close_syslog(void); +void log_close_journal(void); void log_close_kmsg(void); void log_close_console(void); |