| 116 | } |
| 117 | |
| 118 | std::shared_ptr<Logger> LoggerRegistry::GetDefaultLogger() { |
| 119 | auto registry = GetRegistry(); |
| 120 | std::lock_guard<std::mutex> lk(registry->mtx); |
| 121 | return registry->default_logger; |
| 122 | } |
| 123 | |
| 124 | void LoggerRegistry::SetDefaultLogger(std::shared_ptr<Logger> logger) { |
| 125 | DCHECK_NE(logger, nullptr); |
nothing calls this directly
no test coverage detected