Added custom error handler support to async sink

This commit is contained in:
gabime
2025-01-17 13:30:37 +02:00
parent b46b6dcb00
commit bc2eed7913
4 changed files with 23 additions and 6 deletions

View File

@@ -18,6 +18,5 @@ public:
void handle_unknown_ex(const std::string& origin, const source_loc& loc) const noexcept;
void set_err_handler(err_handler handler);
};
}} // namespace spdlog::details
} // namespace details
} // namespace spdlog

View File

@@ -42,7 +42,7 @@ public:
err_handler custom_err_handler = nullptr;
};
explicit async_sink(config async_config);
explicit async_sink(const config &async_config);
// create an async_sink with one backend sink
template <typename Sink, typename... SinkArgs>