22 , overflow_policy_(overflow_policy)
41 #if defined(SPDLOG_ENABLE_MESSAGE_COUNTER) 50 throw spdlog_ex(
"async log: thread pool doesn't exist anymore");
63 throw spdlog_ex(
"async flush: thread pool doesn't exist anymore");
76 if (
s->should_log(incoming_log_msg.
level))
78 s->log(incoming_log_msg);
106 cloned->set_level(this->
level());
async_overflow_policy overflow_policy_
level::level_enum flush_level() const
void incr_msg_counter_(details::log_msg &msg)
log_err_handler error_handler() const
std::initializer_list< sink_ptr > sinks_init_list
void msg(const char *fmt,...)
#define SPDLOG_CATCH_AND_HANDLE
std::weak_ptr< details::thread_pool > thread_pool_
std::shared_ptr< sinks::sink > sink_ptr
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
std::vector< sink_ptr > sinks_
std::shared_ptr< logger > clone(std::string new_name) override
bool should_flush_(const details::log_msg &msg)
async_logger(std::string logger_name, It begin, It end, std::weak_ptr< details::thread_pool > tp, async_overflow_policy overflow_policy=async_overflow_policy::block)
void sink_it_(details::log_msg &msg) override
level::level_enum level() const
void backend_log_(const details::log_msg &incoming_log_msg)
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.