From 815fce1c1406c07e52008d4bed45de7cf9fca77d Mon Sep 17 00:00:00 2001 From: Bousk Date: Fri, 20 Apr 2018 11:25:18 +0100 Subject: [PATCH] Update async_logger_impl.h --- include/spdlog/details/async_logger_impl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/spdlog/details/async_logger_impl.h b/include/spdlog/details/async_logger_impl.h index 748a53ac..98cc9204 100644 --- a/include/spdlog/details/async_logger_impl.h +++ b/include/spdlog/details/async_logger_impl.h @@ -17,7 +17,7 @@ #include template -inline spdlog::async_logger::async_logger(const std::string &logger_name, const It &begin, const It &end, size_t queue_size, +inline spdlog::async_logger::async_logger(const string &logger_name, const It &begin, const It &end, size_t queue_size, const async_overflow_policy overflow_policy, const std::function &worker_warmup_cb, const std::chrono::milliseconds &flush_interval_ms, const std::function &worker_teardown_cb) : logger(logger_name, begin, end) @@ -26,7 +26,7 @@ inline spdlog::async_logger::async_logger(const std::string &logger_name, const { } -inline spdlog::async_logger::async_logger(const std::string &logger_name, sinks_init_list sinks_list, size_t queue_size, +inline spdlog::async_logger::async_logger(const string &logger_name, sinks_init_list sinks_list, size_t queue_size, const async_overflow_policy overflow_policy, const std::function &worker_warmup_cb, const std::chrono::milliseconds &flush_interval_ms, const std::function &worker_teardown_cb) : async_logger(logger_name, sinks_list.begin(), sinks_list.end(), queue_size, overflow_policy, worker_warmup_cb, flush_interval_ms, @@ -34,7 +34,7 @@ inline spdlog::async_logger::async_logger(const std::string &logger_name, sinks_ { } -inline spdlog::async_logger::async_logger(const std::string &logger_name, sink_ptr single_sink, size_t queue_size, +inline spdlog::async_logger::async_logger(const string &logger_name, sink_ptr single_sink, size_t queue_size, const async_overflow_policy overflow_policy, const std::function &worker_warmup_cb, const std::chrono::milliseconds &flush_interval_ms, const std::function &worker_teardown_cb) : async_logger( @@ -64,9 +64,9 @@ inline void spdlog::async_logger::_set_formatter(spdlog::formatter_ptr msg_forma _async_log_helper->set_formatter(_formatter); } -inline void spdlog::async_logger::_set_pattern(const std::string &pattern, pattern_time_type pattern_time) +inline void spdlog::async_logger::_set_pattern(const string &pattern, pattern_time_type pattern_time) { - _formatter = std::make_shared(pattern, pattern_time); + _formatter = spdlog::make_shared(pattern, pattern_time); _async_log_helper->set_formatter(_formatter); }