Function reconfigureAllLoggers

Summary

#include <src/easylogging++.h>

(1) static void reconfigureAllLoggers(const Configurations &configurations)

(2) static void reconfigureAllLoggers(ConfigurationType configurationType, const std::string &value)

(3) static void reconfigureAllLoggers(Level level, ConfigurationType configurationType, const std::string &value)

Function overload

Synopsis

#include <src/easylogging++.h>

static void reconfigureAllLoggers(const Configurations &configurations)

Description

Reconfigures all the existing loggers with new configurations.

Mentioned in

Source

Lines 2988-2993 in src/easylogging++.cc. Line 3820 in src/easylogging++.h.

void Loggers::reconfigureAllLoggers(const Configurations& configurations) {
  for (base::RegisteredLoggers::iterator it = ELPP->registeredLoggers()->begin();
       it != ELPP->registeredLoggers()->end(); ++it) {
    Loggers::reconfigureLogger(it->second, configurations);
  }
}

Synopsis

#include <src/easylogging++.h>

static void reconfigureAllLoggers(ConfigurationType configurationType, const std::string &value)

Description

Reconfigures single configuration for all the loggers.

Mentioned in

Source

Lines 3822-3824 in src/easylogging++.h.

static inline void reconfigureAllLoggers(ConfigurationType configurationType, const std::string& value) {
  reconfigureAllLoggers(Level::Global, configurationType, value);
}

Synopsis

#include <src/easylogging++.h>

static void reconfigureAllLoggers(Level level, ConfigurationType configurationType, const std::string &value)

Description

Reconfigures single configuration for all the loggers for specified level.

Mentioned in

Source

Lines 2995-3003 in src/easylogging++.cc. Line 3826 in src/easylogging++.h.

void Loggers::reconfigureAllLoggers(Level level, ConfigurationType configurationType,
                                    const std::string& value) {
  for (base::RegisteredLoggers::iterator it = ELPP->registeredLoggers()->begin();
       it != ELPP->registeredLoggers()->end(); ++it) {
    Logger* logger = it->second;
    logger->configurations()->set(level, configurationType, value);
    logger->reconfigure();
  }
}





Add Discussion

Log in to comment