Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
dcdb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
dcdb
dcdb
Commits
a3f7e7a8
Commit
a3f7e7a8
authored
Feb 10, 2020
by
Michael Ott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for logging console to journald
parent
1b644a40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
common/src/logging.cpp
common/src/logging.cpp
+1
-1
No files found.
common/src/logging.cpp
View file @
a3f7e7a8
...
@@ -35,7 +35,7 @@ void initLogging() {
...
@@ -35,7 +35,7 @@ void initLogging() {
//Setup a command line logger
//Setup a command line logger
//only print timestamp (without date), severity and message to terminal
//only print timestamp (without date), severity and message to terminal
auto
setupCmdLogger
()
->
decltype
(
boost
::
log
::
add_console_log
())
{
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
::
keywords
::
format
=
(
boost
::
log
::
expressions
::
stream
<<
"["
<<
boost
::
log
::
expressions
::
format_date_time
<
boost
::
posix_time
::
ptime
>
(
"TimeStamp"
,
"%H:%M:%S"
)
<<
"]"
<<
"["
<<
boost
::
log
::
expressions
::
format_date_time
<
boost
::
posix_time
::
ptime
>
(
"TimeStamp"
,
"%H:%M:%S"
)
<<
"]"
<<
" <"
<<
boost
::
log
::
trivial
::
severity
<<
">"
<<
" <"
<<
boost
::
log
::
trivial
::
severity
<<
">"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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