Removed formatter_ member from the sink interface

This commit is contained in:
gabime
2019-06-27 23:56:37 +03:00
parent cf152e6030
commit 29f2eeea31
18 changed files with 49 additions and 45 deletions

View File

@@ -67,7 +67,7 @@ template<typename Mutex>
SPDLOG_INLINE void rotating_file_sink<Mutex>::sink_it_(const details::log_msg &msg)
{
fmt::memory_buffer formatted;
sink::formatter_->format(msg, formatted);
base_sink<Mutex>::formatter_->format(msg, formatted);
current_size_ += formatted.size();
if (current_size_ > max_size_)
{