| 94 | } |
| 95 | |
| 96 | void LoggerRegistry::UnregisterLogger(std::string_view name) { |
| 97 | auto registry = GetRegistry(); |
| 98 | std::lock_guard<std::mutex> lk(registry->mtx); |
| 99 | registry->loggers.erase(std::string(name)); |
| 100 | } |
| 101 | |
| 102 | std::shared_ptr<Logger> LoggerRegistry::GetLogger(std::string_view name) { |
| 103 | if (name.empty()) { |
nothing calls this directly
no test coverage detected