24 virtual ~sink() =
default;
26 virtual void flush() = 0;
27 virtual void set_pattern(
const std::string &pattern) = 0;
28 virtual void set_formatter(std::unique_ptr<spdlog::formatter> sink_formatter) = 0;
32 return msg_level >=
level_.load(std::memory_order_relaxed);
50 std::unique_ptr<spdlog::formatter>
formatter_{details::make_unique<spdlog::pattern_formatter>()};
virtual void set_pattern(const std::string &pattern)=0
sink(std::unique_ptr< spdlog::formatter > formatter)
bool should_log(level::level_enum msg_level) const
std::unique_ptr< spdlog::formatter > formatter_
virtual void log(const details::log_msg &msg)=0
level::level_enum level() const
void set_level(level::level_enum log_level)
std::atomic< int > level_t
virtual void set_formatter(std::unique_ptr< spdlog::formatter > sink_formatter)=0