Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
d9ff5df8
Commit
d9ff5df8
authored
May 03, 2016
by
Kevin M. Godby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved flush call to logger::_log_msg() function.
parent
6b966478
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
include/spdlog/details/line_logger_impl.h
include/spdlog/details/line_logger_impl.h
+0
-5
include/spdlog/details/logger_impl.h
include/spdlog/details/logger_impl.h
+4
-0
No files found.
include/spdlog/details/line_logger_impl.h
View file @
d9ff5df8
...
...
@@ -46,11 +46,6 @@ inline spdlog::details::line_logger::~line_logger()
#endif
_callback_logger
->
_log_msg
(
_log_msg
);
}
if
(
_log_msg
.
level
>=
_callback_logger
->
_flush_level
)
{
_callback_logger
->
flush
();
}
}
//
...
...
include/spdlog/details/logger_impl.h
View file @
d9ff5df8
...
...
@@ -290,6 +290,10 @@ inline void spdlog::logger::_log_msg(details::log_msg& msg)
_formatter
->
format
(
msg
);
for
(
auto
&
sink
:
_sinks
)
sink
->
log
(
msg
);
const
auto
flush_level
=
_flush_level
.
load
(
std
::
memory_order_relaxed
);
if
(
msg
.
level
>=
flush_level
)
flush
();
}
inline
void
spdlog
::
logger
::
_set_pattern
(
const
std
::
string
&
pattern
)
...
...
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