From a3f7e7a8ec72b2255bc70f968159629170dc4ced Mon Sep 17 00:00:00 2001 From: Michael Ott Date: Mon, 10 Feb 2020 13:53:36 +0100 Subject: [PATCH] Allow for logging console to journald --- common/src/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/logging.cpp b/common/src/logging.cpp index 4d44c42..9cf5b15 100644 --- a/common/src/logging.cpp +++ b/common/src/logging.cpp @@ -35,7 +35,7 @@ void initLogging() { //Setup a command line logger //only print timestamp (without date), severity and message to terminal auto setupCmdLogger() -> decltype(boost::log::add_console_log()) { - auto logger = boost::log::add_console_log(std::cout, + auto logger = boost::log::add_console_log(std::clog, boost::log::keywords::format = (boost::log::expressions::stream << "[" << boost::log::expressions::format_date_time("TimeStamp", "%H:%M:%S") << "]" << " <" << boost::log::trivial::severity << ">" -- GitLab