diff --git a/include/spdlog/details/async_log_helper.h b/include/spdlog/details/async_log_helper.h index a7780740..7ef3bb5b 100644 --- a/include/spdlog/details/async_log_helper.h +++ b/include/spdlog/details/async_log_helper.h @@ -44,11 +44,11 @@ class async_log_helper struct async_msg { - std::string logger_name; + string logger_name; level::level_enum level; log_clock::time_point time; size_t thread_id; - std::string txt; + string txt; async_msg_type msg_type; size_t msg_id; @@ -121,7 +121,7 @@ public: using clock = std::chrono::steady_clock; - async_log_helper(formatter_ptr formatter, std::vector sinks, size_t queue_size, const log_err_handler err_handler, + async_log_helper(formatter_ptr formatter, vector sinks, size_t queue_size, const log_err_handler err_handler, const async_overflow_policy overflow_policy = async_overflow_policy::block_retry, std::function worker_warmup_cb = nullptr, const std::chrono::milliseconds &flush_interval_ms = std::chrono::milliseconds::zero(), std::function worker_teardown_cb = nullptr); @@ -142,7 +142,7 @@ public: private: formatter_ptr _formatter; - std::vector> _sinks; + vector> _sinks; // queue of messages to log q_type _q; @@ -191,7 +191,7 @@ private: /////////////////////////////////////////////////////////////////////////////// // async_sink class implementation /////////////////////////////////////////////////////////////////////////////// -inline spdlog::details::async_log_helper::async_log_helper(formatter_ptr formatter, std::vector sinks, size_t queue_size, +inline spdlog::details::async_log_helper::async_log_helper(formatter_ptr formatter, vector sinks, size_t queue_size, log_err_handler err_handler, const async_overflow_policy overflow_policy, std::function worker_warmup_cb, const std::chrono::milliseconds &flush_interval_ms, std::function worker_teardown_cb) : _formatter(std::move(formatter))