Static helpers to deal with loggers and their configurations. More...
#include <easylogging++.h>
Classes | |
class | ScopedAddFlag |
Adds flag and removes it when scope goes out. More... | |
class | ScopedRemoveFlag |
Removes flag and add it when scope goes out. More... | |
Static Public Member Functions | |
static void | addFlag (LoggingFlag flag) |
Adds logging flag used internally. More... | |
static void | clearVModules (void) |
Clears vmodules. More... | |
static bool | configureFromArg (const char *argKey) |
Configures loggers using command line arg. Ensure you have already set command line args,. More... | |
static void | configureFromGlobal (const char *globalConfigurationFilePath) |
Sets configurations from global configuration file. More... | |
static const Configurations * | defaultConfigurations (void) |
Returns current default. More... | |
static base::TypedConfigurations | defaultTypedConfigurations (void) |
Default typed configuration based on existing defaultConf. More... | |
static void | flushAll (void) |
Flushes all loggers for all levels - Be careful if you dont know how many loggers are registered. More... | |
static Logger * | getLogger (const std::string &identity, bool registerIfNotAvailable=true) |
Gets existing or registers new logger. More... | |
static bool | hasFlag (LoggingFlag flag) |
Determines whether or not certain flag is active. More... | |
static bool | hasLogger (const std::string &identity) |
Whether or not logger with id is registered. More... | |
template<typename T > | |
static bool | installLoggerRegistrationCallback (const std::string &id) |
Installs logger registration callback, this callback is triggered when new logger is registered. More... | |
template<typename T > | |
static T * | loggerRegistrationCallback (const std::string &id) |
static const base::LogStreamsReferenceMap * | logStreamsReference (void) |
Returns log stream reference pointer if needed by user. More... | |
static std::vector< std::string > * | populateAllLoggerIds (std::vector< std::string > *targetList) |
Populates all logger IDs in current repository. More... | |
static void | reconfigureAllLoggers (const Configurations &configurations) |
Reconfigures all the existing loggers with new configurations. More... | |
static void | reconfigureAllLoggers (ConfigurationType configurationType, const std::string &value) |
Reconfigures single configuration for all the loggers. More... | |
static void | reconfigureAllLoggers (Level level, ConfigurationType configurationType, const std::string &value) |
Reconfigures single configuration for all the loggers for specified level. More... | |
static Logger * | reconfigureLogger (Logger *logger, const Configurations &configurations) |
Reconfigures specified logger with new configurations. More... | |
static Logger * | reconfigureLogger (const std::string &identity, const Configurations &configurations) |
Reconfigures logger with new configurations after looking it up using identity. More... | |
static Logger * | reconfigureLogger (const std::string &identity, ConfigurationType configurationType, const std::string &value) |
Reconfigures logger's single configuration. More... | |
static void | removeFlag (LoggingFlag flag) |
Removes logging flag used internally. More... | |
static void | setDefaultConfigurations (const Configurations &configurations, bool reconfigureExistingLoggers=false) |
Sets default configurations. This configuration is used for future (and conditionally for existing) loggers. More... | |
static void | setDefaultLogBuilder (el::LogBuilderPtr &logBuilderPtr) |
Changes default log builder for future loggers. More... | |
static void | setLoggingLevel (Level level) |
Sets hierarchy for logging. Needs to enable logging flag (HierarchicalLogging) More... | |
static void | setVerboseLevel (base::type::VerboseLevel level) |
Sets verbose level on the fly. More... | |
static void | setVModules (const char *modules) |
Sets vmodules as specified (on the fly) More... | |
template<typename T > | |
static void | uninstallLoggerRegistrationCallback (const std::string &id) |
Uninstalls log dispatch callback. More... | |
static bool | unregisterLogger (const std::string &identity) |
Unregisters logger - use it only when you know what you are doing, you may unregister loggers initialized / used by third-party libs. More... | |
static base::type::VerboseLevel | verboseLevel (void) |
Gets current verbose level. More... | |
Static helpers to deal with loggers and their configurations.
Definition at line 3817 of file easylogging++.h.
|
inlinestatic |
Adds logging flag used internally.
Definition at line 3880 of file easylogging++.h.
Clears vmodules.
Definition at line 3169 of file easylogging++.cc.
|
static |
Configures loggers using command line arg. Ensure you have already set command line args,.
Definition at line 3136 of file easylogging++.cc.
|
static |
Sets configurations from global configuration file.
Definition at line 3095 of file easylogging++.cc.
|
static |
Returns current default.
Definition at line 3072 of file easylogging++.cc.
|
static |
Default typed configuration based on existing defaultConf.
Definition at line 3080 of file easylogging++.cc.
Flushes all loggers for all levels - Be careful if you dont know how many loggers are registered.
Definition at line 3148 of file easylogging++.cc.
|
static |
Gets existing or registers new logger.
Definition at line 3011 of file easylogging++.cc.
|
inlinestatic |
Determines whether or not certain flag is active.
Definition at line 3888 of file easylogging++.h.
|
static |
Whether or not logger with id is registered.
Definition at line 3023 of file easylogging++.cc.
|
inlinestatic |
Installs logger registration callback, this callback is triggered when new logger is registered.
Definition at line 3825 of file easylogging++.h.
|
inlinestatic |
Definition at line 3834 of file easylogging++.h.
|
static |
Returns log stream reference pointer if needed by user.
Definition at line 3076 of file easylogging++.cc.
|
static |
Populates all logger IDs in current repository.
[out] | targetList | List of fill up. |
Definition at line 3086 of file easylogging++.cc.
|
static |
Reconfigures all the existing loggers with new configurations.
Definition at line 3048 of file easylogging++.cc.
|
inlinestatic |
Reconfigures single configuration for all the loggers.
Definition at line 3852 of file easylogging++.h.
|
static |
Reconfigures single configuration for all the loggers for specified level.
Definition at line 3055 of file easylogging++.cc.
|
static |
Reconfigures specified logger with new configurations.
Definition at line 3027 of file easylogging++.cc.
|
static |
Reconfigures logger with new configurations after looking it up using identity.
Definition at line 3033 of file easylogging++.cc.
|
static |
Reconfigures logger's single configuration.
Definition at line 3037 of file easylogging++.cc.
|
inlinestatic |
Removes logging flag used internally.
Definition at line 3884 of file easylogging++.h.
|
static |
Sets default configurations. This configuration is used for future (and conditionally for existing) loggers.
Definition at line 3065 of file easylogging++.cc.
|
static |
Changes default log builder for future loggers.
Definition at line 3015 of file easylogging++.cc.
Sets hierarchy for logging. Needs to enable logging flag (HierarchicalLogging)
Definition at line 3916 of file easylogging++.h.
|
static |
Sets verbose level on the fly.
Definition at line 3155 of file easylogging++.cc.
|
static |
Sets vmodules as specified (on the fly)
Definition at line 3163 of file easylogging++.cc.
|
inlinestatic |
Uninstalls log dispatch callback.
Definition at line 3830 of file easylogging++.h.
|
static |
Unregisters logger - use it only when you know what you are doing, you may unregister loggers initialized / used by third-party libs.
Definition at line 3019 of file easylogging++.cc.
|
static |
Gets current verbose level.
Definition at line 3159 of file easylogging++.cc.