mirror of
https://github.com/gabime/spdlog.git
synced 2025-11-16 09:28:56 +08:00
Simplified sink interface - to just accept char* and size_t
This commit is contained in:
@@ -184,7 +184,8 @@ inline void spdlog::logger::_variadic_log(spdlog::details::line_logger& l, const
|
||||
inline void spdlog::logger::_log_msg(details::log_msg& msg)
|
||||
{
|
||||
_formatter->format(msg);
|
||||
auto buf = msg.formatted.buf();
|
||||
for (auto &sink : _sinks)
|
||||
sink->log(msg);
|
||||
sink->sink_it(buf.data(), buf.size());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user