Classes | Static Public Member Functions | List of all members
el::Loggers Class Reference

Static helpers to deal with loggers and their configurations. More...

#include <easylogging++.h>

Inheritance diagram for el::Loggers:
Inheritance graph
[legend]

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 ConfigurationsdefaultConfigurations (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 LoggergetLogger (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::LogStreamsReferenceMaplogStreamsReference (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 LoggerreconfigureLogger (Logger *logger, const Configurations &configurations)
 Reconfigures specified logger with new configurations. More...
 
static LoggerreconfigureLogger (const std::string &identity, const Configurations &configurations)
 Reconfigures logger with new configurations after looking it up using identity. More...
 
static LoggerreconfigureLogger (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...
 

Detailed Description

Static helpers to deal with loggers and their configurations.

Definition at line 3817 of file easylogging++.h.

Member Function Documentation

static void el::Loggers::addFlag ( LoggingFlag  flag)
inlinestatic

Adds logging flag used internally.

Definition at line 3880 of file easylogging++.h.

void el::Loggers::clearVModules ( void  )
static

Clears vmodules.

Definition at line 3169 of file easylogging++.cc.

bool el::Loggers::configureFromArg ( const char *  argKey)
static

Configures loggers using command line arg. Ensure you have already set command line args,.

Returns
False if invalid argument or argument with no value provided, true if attempted to configure logger. If true is returned that does not mean it has been configured successfully, it only means that it has attempeted to configure logger using configuration file provided in argument

Definition at line 3136 of file easylogging++.cc.

void el::Loggers::configureFromGlobal ( const char *  globalConfigurationFilePath)
static

Sets configurations from global configuration file.

Definition at line 3095 of file easylogging++.cc.

const Configurations * el::Loggers::defaultConfigurations ( void  )
static

Returns current default.

Definition at line 3072 of file easylogging++.cc.

base::TypedConfigurations el::Loggers::defaultTypedConfigurations ( void  )
static

Default typed configuration based on existing defaultConf.

Definition at line 3080 of file easylogging++.cc.

void el::Loggers::flushAll ( void  )
static

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.

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

Gets existing or registers new logger.

Definition at line 3011 of file easylogging++.cc.

static bool el::Loggers::hasFlag ( LoggingFlag  flag)
inlinestatic

Determines whether or not certain flag is active.

Definition at line 3888 of file easylogging++.h.

bool el::Loggers::hasLogger ( const std::string identity)
static

Whether or not logger with id is registered.

Definition at line 3023 of file easylogging++.cc.

template<typename T >
static bool el::Loggers::installLoggerRegistrationCallback ( const std::string id)
inlinestatic

Installs logger registration callback, this callback is triggered when new logger is registered.

Definition at line 3825 of file easylogging++.h.

template<typename T >
static T* el::Loggers::loggerRegistrationCallback ( const std::string id)
inlinestatic

Definition at line 3834 of file easylogging++.h.

const base::LogStreamsReferenceMap * el::Loggers::logStreamsReference ( void  )
static

Returns log stream reference pointer if needed by user.

Definition at line 3076 of file easylogging++.cc.

std::vector< std::string > * el::Loggers::populateAllLoggerIds ( std::vector< std::string > *  targetList)
static

Populates all logger IDs in current repository.

Parameters
[out]targetListList of fill up.

Definition at line 3086 of file easylogging++.cc.

void el::Loggers::reconfigureAllLoggers ( const Configurations configurations)
static

Reconfigures all the existing loggers with new configurations.

Definition at line 3048 of file easylogging++.cc.

static void el::Loggers::reconfigureAllLoggers ( ConfigurationType  configurationType,
const std::string value 
)
inlinestatic

Reconfigures single configuration for all the loggers.

Definition at line 3852 of file easylogging++.h.

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

Reconfigures single configuration for all the loggers for specified level.

Definition at line 3055 of file easylogging++.cc.

Logger * el::Loggers::reconfigureLogger ( Logger logger,
const Configurations configurations 
)
static

Reconfigures specified logger with new configurations.

Definition at line 3027 of file easylogging++.cc.

Logger * el::Loggers::reconfigureLogger ( const std::string identity,
const Configurations configurations 
)
static

Reconfigures logger with new configurations after looking it up using identity.

Definition at line 3033 of file easylogging++.cc.

Logger * el::Loggers::reconfigureLogger ( const std::string identity,
ConfigurationType  configurationType,
const std::string value 
)
static

Reconfigures logger's single configuration.

Definition at line 3037 of file easylogging++.cc.

static void el::Loggers::removeFlag ( LoggingFlag  flag)
inlinestatic

Removes logging flag used internally.

Definition at line 3884 of file easylogging++.h.

void el::Loggers::setDefaultConfigurations ( const Configurations configurations,
bool  reconfigureExistingLoggers = false 
)
static

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

Definition at line 3065 of file easylogging++.cc.

void el::Loggers::setDefaultLogBuilder ( el::LogBuilderPtr logBuilderPtr)
static

Changes default log builder for future loggers.

Definition at line 3015 of file easylogging++.cc.

static void el::Loggers::setLoggingLevel ( Level  level)
inlinestatic

Sets hierarchy for logging. Needs to enable logging flag (HierarchicalLogging)

Definition at line 3916 of file easylogging++.h.

void el::Loggers::setVerboseLevel ( base::type::VerboseLevel  level)
static

Sets verbose level on the fly.

Definition at line 3155 of file easylogging++.cc.

void el::Loggers::setVModules ( const char *  modules)
static

Sets vmodules as specified (on the fly)

Definition at line 3163 of file easylogging++.cc.

template<typename T >
static void el::Loggers::uninstallLoggerRegistrationCallback ( const std::string id)
inlinestatic

Uninstalls log dispatch callback.

Definition at line 3830 of file easylogging++.h.

bool el::Loggers::unregisterLogger ( const std::string identity)
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.

base::type::VerboseLevel el::Loggers::verboseLevel ( void  )
static

Gets current verbose level.

Definition at line 3159 of file easylogging++.cc.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36