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

This commit is contained in:
gabime
2018-07-20 12:49:30 +01:00
parent 63db70aacc
commit ddb3002bc1
2 changed files with 7 additions and 0 deletions

View File

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