Commit ddb3002b authored by gabime's avatar gabime

Added non const sinks() function to support addition/removal of sinks from existing logger

parent 63db70aa
......@@ -338,3 +338,8 @@ inline const std::vector<spdlog::sink_ptr> &spdlog::logger::sinks() const
{
return sinks_;
}
inline std::vector<spdlog::sink_ptr> &spdlog::logger::sinks()
{
return sinks_;
}
......@@ -126,6 +126,8 @@ public:
const std::vector<sink_ptr> &sinks() const;
std::vector<sink_ptr> &sinks() ;
// error handler
void set_error_handler(log_err_handler err_handler);
log_err_handler error_handler();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment