From 156bb01a731661e0b90be90a58e56102352c33ad Mon Sep 17 00:00:00 2001 From: "LUONG HONG DUY KHANH(RBVH/ENG42)" Date: Wed, 18 Mar 2020 13:40:43 +0700 Subject: Redirect stdout to stderr - daemon: New feature for LoggingMode at /etc/dlt.conf to be able to set value at 3 in order to redirect all stdout messages to stderr. - libdlt: New feature for DLT_LOG_MODE environment variable to be able to set value at 3 in order to redirect all stdout messages to stderr. - unit test: Add test cases for DLT_LOG_TO_STDERR Signed-off-by: LUONG HONG DUY KHANH(RBVH/ENG42) --- src/daemon/dlt.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/daemon/dlt.conf') diff --git a/src/daemon/dlt.conf b/src/daemon/dlt.conf index 091f0d6..60d3315 100644 --- a/src/daemon/dlt.conf +++ b/src/daemon/dlt.conf @@ -35,7 +35,10 @@ SharedMemorySize = 100000 # PersistanceStoragePath = /tmp # The logging console for internal logging of dlt-daemon (Default: 0) -# 0 = log to stdout, 1 = log to syslog, 2 = log to file (see LoggingFilename) +# 0 = log to stdout +# 1 = log to syslog +# 2 = log to file (see LoggingFilename) +# 3 = log to stderr LoggingMode = 0 # The internal log level, up to which logs are written (Default: 6) -- cgit v1.2.1