pattern per sink and pattern caching

This commit is contained in:
gabime
2018-06-24 01:32:39 +03:00
parent 9d7a5c253a
commit 0c19bdd772
24 changed files with 349 additions and 270 deletions

View File

@@ -26,9 +26,9 @@ public:
ostream_sink &operator=(const ostream_sink &) = delete;
protected:
void sink_it_(const details::log_msg &msg) override
void sink_it_(const details::log_msg &msg, const fmt::memory_buffer &formatted) override
{
ostream_.write(msg.formatted.data(), msg.formatted.size());
ostream_.write(formatted.data(), formatted.size());
if (force_flush_)
ostream_.flush();
}