|
|
@ -50,7 +50,9 @@ inline spdlog::logger::logger(const std::string& logger_name, sinks_init_list si
|
|
|
|
|
|
|
|
|
|
|
|
// ctor with single sink
|
|
|
|
// ctor with single sink
|
|
|
|
inline spdlog::logger::logger(const std::string& logger_name, spdlog::sink_ptr single_sink) :
|
|
|
|
inline spdlog::logger::logger(const std::string& logger_name, spdlog::sink_ptr single_sink) :
|
|
|
|
logger(logger_name, { single_sink }) {}
|
|
|
|
logger(logger_name, {
|
|
|
|
|
|
|
|
single_sink
|
|
|
|
|
|
|
|
}) {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline spdlog::logger::~logger() = default;
|
|
|
|
inline spdlog::logger::~logger() = default;
|
|
|
@ -313,7 +315,6 @@ inline void spdlog::logger::_set_formatter(formatter_ptr msg_formatter)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline void spdlog::logger::flush() {
|
|
|
|
inline void spdlog::logger::flush() {
|
|
|
|
for (auto& sink : _sinks) {
|
|
|
|
for (auto& sink : _sinks)
|
|
|
|
sink->flush();
|
|
|
|
sink->flush();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|