Example #1
0
/**
 * 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);
  }
}
Example #2
0
    void unregister_logger(LoggerId logger_id) {
        MutexLock const l(_log_levels_mutex);

        _loggers.erase(logger_id);
    }