Function setDefaultConfigurations

Synopsis

#include <src/easylogging++.h>

static void setDefaultConfigurations(const Configurations &configurations, bool reconfigureExistingLoggers=false)

Description

Sets default configurations. This configuration is used for future (and conditionally for existing) loggers.

Mentioned in

Source

Lines 3005-3010 in src/easylogging++.cc. Line 3829 in src/easylogging++.h.

void Loggers::setDefaultConfigurations(const Configurations& configurations, bool reconfigureExistingLoggers) {
  ELPP->registeredLoggers()->setDefaultConfigurations(configurations);
  if (reconfigureExistingLoggers) {
    Loggers::reconfigureAllLoggers(configurations);
  }
}





Add Discussion

Log in to comment