/** * Destructor. Delete logger from the map. */ Logger::~Logger() { trace("~Logger destroyed"); // FIXME need to close handler Loggers::iterator it = loggers.find(getName()); if (it != loggers.end()) { loggers.erase(it); } }
void unregister_logger(LoggerId logger_id) { MutexLock const l(_log_levels_mutex); _loggers.erase(logger_id); }