Function getLogger

Synopsis

#include <src/easylogging++.h>

static Logger * getLogger(const std::string &identity, bool registerIfNotAvailable=true)

Description

Gets existing or registers new logger.

Loggers.

Mentioned in

Source

Lines 2951-2953 in src/easylogging++.cc. Line 3790 in src/easylogging++.h.

Logger* Loggers::getLogger(const std::string& identity, bool registerIfNotAvailable) {
  return ELPP->registeredLoggers()->get(identity, registerIfNotAvailable);
}





Add Discussion

Log in to comment