Fixed issue #759

This commit is contained in:
gabime 2018-07-23 00:13:24 +03:00
parent 9d497d5afd
commit fe73255452
2 changed files with 4 additions and 3 deletions

View File

@ -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_;

View File

@ -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>;