aboutsummaryrefslogtreecommitdiffstats
path: root/brillo/syslog_logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'brillo/syslog_logging.h')
-rw-r--r--brillo/syslog_logging.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/brillo/syslog_logging.h b/brillo/syslog_logging.h
index b054259..04b3253 100644
--- a/brillo/syslog_logging.h
+++ b/brillo/syslog_logging.h
@@ -12,9 +12,14 @@
namespace brillo {
enum InitFlags {
+ // Always log to syslog.
kLogToSyslog = 1,
+ // Always log to stderr.
kLogToStderr = 2,
+ // Include message header in log lines.
kLogHeader = 4,
+ // Log to stderr if stdin is a tty (e.g. command line).
+ kLogToStderrIfTty = 8,
};
// Initialize logging subsystem. |init_flags| is a bitfield, with bits defined