mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
Removed close() from sink to have RAII semantics
This commit is contained in:
@@ -104,12 +104,12 @@ public:
|
||||
|
||||
}
|
||||
|
||||
void close_all()
|
||||
void stop_all()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
_level = level::OFF;
|
||||
for (auto& l : _loggers)
|
||||
l.second->close();
|
||||
l.second->stop();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user