05.03., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit a3f7e7a8 authored by Michael Ott's avatar Michael Ott

Allow for logging console to journald

parent 1b644a40
......@@ -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<boost::posix_time::ptime>("TimeStamp", "%H:%M:%S") << "]"
<< " <" << boost::log::trivial::severity << ">"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment