mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
small fixes in async_helper
This commit is contained in:
@@ -37,11 +37,8 @@ template<class It>
|
||||
inline spdlog::async_logger::async_logger(const std::string& logger_name, const It& begin, const It& end, size_t queue_size, const log_clock::duration& shutdown_duration) :
|
||||
logger(logger_name, begin, end),
|
||||
_shutdown_duration(shutdown_duration),
|
||||
_async_log_helper(new details::async_log_helper(queue_size))
|
||||
{
|
||||
_async_log_helper->set_formatter(_formatter);
|
||||
for (auto &s : _sinks)
|
||||
_async_log_helper->add_sink(s);
|
||||
_async_log_helper(new details::async_log_helper(_formatter, _sinks, queue_size))
|
||||
{
|
||||
}
|
||||
|
||||
inline spdlog::async_logger::async_logger(const std::string& logger_name, sinks_init_list sinks, size_t queue_size, const log_clock::duration& shutdown_duration) :
|
||||
|
Reference in New Issue
Block a user