summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-12 01:01:04 +0100
committerLennart Poettering <lennart@poettering.net>2010-11-12 01:01:04 +0100
commitbb7df0da2d14800d4cb871ab07a9d3595990fbad (patch)
tree247a871c153b044b5b50846ebdff74858aa63c46 /src/log.h
parent7f4e08056de0184b205a20632e62db73d299937e (diff)
log: add automatic log target
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/log.h b/src/log.h
index b052bc3c51..303b0d66a3 100644
--- a/src/log.h
+++ b/src/log.h
@@ -34,6 +34,7 @@ typedef enum LogTarget{
LOG_TARGET_KMSG,
LOG_TARGET_SYSLOG,
LOG_TARGET_SYSLOG_OR_KMSG,
+ LOG_TARGET_AUTO, /* console if stderr is tty, SYSLOG_OR_KMSG otherwise */
LOG_TARGET_NULL,
_LOG_TARGET_MAX,
_LOG_TARGET_INVALID = -1