1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-27 09:56:31 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Gabi Melman
de89c4fd01
Merge pull request #1835 from jneruda/v1.x
Set default value to registry::err_handler_
2021-02-18 19:49:39 +02:00
Jakub Neruda
5d4956d34b
Set default value to registry::err_handler_ 2021-02-17 14:02:20 +01:00

View File

@ -99,7 +99,7 @@ private:
std::unique_ptr<formatter> formatter_;
spdlog::level::level_enum global_log_level_ = level::info;
level::level_enum flush_level_ = level::off;
void (*err_handler_)(const std::string &msg);
void (*err_handler_)(const std::string &msg) = nullptr;
std::shared_ptr<thread_pool> tp_;
std::unique_ptr<periodic_worker> periodic_flusher_;
std::shared_ptr<logger> default_logger_;