21 template<
typename Mutex>
31 std::lock_guard<Mutex> lock(
mutex_);
37 std::lock_guard<Mutex> lock(
mutex_);
43 std::lock_guard<Mutex> lock(
mutex_);
47 void set_formatter(std::unique_ptr<spdlog::formatter> sink_formatter)
final 49 std::lock_guard<Mutex> lock(
mutex_);
59 set_formatter_(details::make_unique<spdlog::pattern_formatter>(pattern));
62 virtual void set_formatter_(std::unique_ptr<spdlog::formatter> sink_formatter)
void msg(const char *fmt,...)
virtual void set_formatter_(std::unique_ptr< spdlog::formatter > sink_formatter)
std::unique_ptr< spdlog::formatter > formatter_
void log(const details::log_msg &msg) final
void set_formatter(std::unique_ptr< spdlog::formatter > sink_formatter) final
base_sink & operator=(const base_sink &)=delete
void set_pattern(const std::string &pattern) final
virtual void set_pattern_(const std::string &pattern)
virtual void sink_it_(const details::log_msg &msg)=0