mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-27 07:14:12 +08:00
Fixed issue #759
This commit is contained in:
parent
9d497d5afd
commit
fe73255452
@ -169,7 +169,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
registry_t<Mutex>() = default;
|
||||
registry_t<Mutex>() : formatter_(new pattern_formatter("%+")){}
|
||||
|
||||
~registry_t<Mutex>()
|
||||
{
|
||||
@ -196,7 +196,8 @@ private:
|
||||
Mutex loggers_mutex_;
|
||||
std::recursive_mutex tp_mutex_;
|
||||
std::unordered_map<std::string, std::shared_ptr<logger>> loggers_;
|
||||
std::unique_ptr<formatter> formatter_{ new pattern_formatter("%+") };
|
||||
//std::unique_ptr<formatter> formatter_{ new pattern_formatter("%+") };
|
||||
std::unique_ptr<formatter> formatter_;
|
||||
level::level_enum level_ = level::info;
|
||||
level::level_enum flush_level_ = level::off;
|
||||
log_err_handler err_handler_;
|
||||
|
@ -47,7 +47,7 @@ protected:
|
||||
}
|
||||
size_t msg_counter_{0};
|
||||
size_t flush_counter_{0};
|
||||
std::chrono::milliseconds delay_{0};
|
||||
std::chrono::milliseconds delay_{std::chrono::milliseconds::zero()};
|
||||
};
|
||||
|
||||
using test_sink_mt = test_sink<std::mutex>;
|
||||
|
Loading…
Reference in New Issue
Block a user