mirror of
https://github.com/gabime/spdlog.git
synced 2025-11-16 09:28:56 +08:00
flush in logger
This commit is contained in:
@@ -312,4 +312,8 @@ inline void spdlog::logger::_set_formatter(formatter_ptr msg_formatter)
|
||||
_formatter = msg_formatter;
|
||||
}
|
||||
|
||||
|
||||
inline void spdlog::logger::flush() {
|
||||
for (auto& sink : _sinks) {
|
||||
sink->flush();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user