summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-12 04:34:31 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-12 04:34:31 +0100
commit5ba081b0fb02380cee4c2ff5bc7e05f869eb8415 (patch)
tree88c9c73d7b1f605bf984c6875d4099adc5e9875e /src/log.h
parent8a0f04e6a283cc6734ee09a20305c13e09ba0418 (diff)
log: make internal log api log directly to the journal
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/log.h b/src/log.h
index 9942e3e9a0..6ab07a5422 100644
--- a/src/log.h
+++ b/src/log.h
@@ -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);