aboutsummaryrefslogtreecommitdiffstats
path: root/brillo/syslog_logging.h
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2018-08-14 15:50:13 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-08-14 15:50:13 -0700
commit012ffab4353ed5f1970e03203c0ebe07128803f1 (patch)
tree279e9e692e3a7db704f65e6d3977e43e8e75b46a /brillo/syslog_logging.h
parent5d78951d5bc7bad54082b1083c2dc7f3b9fae89d (diff)
parent02903ef05eeace7afcd50207b7bd04a6ec7391e0 (diff)
downloadplatform_external_libbrillo-012ffab4353ed5f1970e03203c0ebe07128803f1.tar.gz
platform_external_libbrillo-012ffab4353ed5f1970e03203c0ebe07128803f1.tar.bz2
platform_external_libbrillo-012ffab4353ed5f1970e03203c0ebe07128803f1.zip
Merge remote-tracking branch 'aosp/upstream-master' into aosp/master. am: 0fa01c38cc
am: 02903ef05e Change-Id: I19f3bf81b582b791fc7f8cd05b86d3faf1752be1
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