Added drop_all

This commit is contained in:
gabi
2014-12-27 13:01:15 +02:00
parent 3c57133c7a
commit bf3997de28
3 changed files with 19 additions and 4 deletions

View File

@@ -78,6 +78,11 @@ public:
_loggers.erase(logger_name);
}
void drop_all()
{
std::lock_guard<std::mutex> lock(_mutex);
_loggers.clear();
}
std::shared_ptr<logger> create(const std::string& logger_name, sinks_init_list sinks)
{
return create(logger_name, sinks.begin(), sinks.end());