Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
dcdb
dcdb
Commits
a3f7e7a8
Commit
a3f7e7a8
authored
Feb 10, 2020
by
Michael Ott
Browse files
Allow for logging console to journald
parent
1b644a40
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/src/logging.cpp
View file @
a3f7e7a8
...
...
@@ -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
::
c
out
,
auto
logger
=
boost
::
log
::
add_console_log
(
std
::
c
log
,
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
<<
">"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment