6 #ifndef SPDLOG_HEADER_ONLY
23 :
async_logger(
std::move(logger_name), {std::move(single_sink)}, std::move(tp), overflow_policy)
29 if (
auto pool_ptr = thread_pool_.lock())
31 pool_ptr->post_log(shared_from_this(), msg, overflow_policy_);
42 if (
auto pool_ptr = thread_pool_.lock())
44 pool_ptr->post_flush(shared_from_this(), overflow_policy_);
57 for (
auto &sink : sinks_)
59 if (sink->should_log(msg.
level))
69 if (should_flush_(msg))
77 for (
auto &sink : sinks_)
89 auto cloned = std::make_shared<spdlog::async_logger>(*
this);
90 cloned->name_ = std::move(new_name);