Function remove

Synopsis

#include <src/easylogging++.h>

bool remove(const std::string &id)

Description

No description yet.

Source

Lines 1915-1926 in src/easylogging++.cc. Line 2386 in src/easylogging++.h.

bool RegisteredLoggers::remove(const std::string& id) {
  if (id == base::consts::kDefaultLoggerId) {
    return false;
  }
  // get has internal lock
  Logger* logger = base::utils::Registry<Logger, std::string>::get(id);
  if (logger != nullptr) {
    // unregister has internal lock
    unregister(logger);
  }
  return true;
}





Add Discussion

Log in to comment