Skip to main content
The configuration associated to a Logger. It allows setting the log level and the sinks of a logger.

Members

Public functions

Function LoggerConfig

Construct a new Logger Config object. Return type:

Function getLogLevel

Get the loglevel for the Logger. Returns: eLogLevel Return type: eLogLevel

Function getSinks

Get the list of sink types supported by the Logger. Returns: std::set<eLoggerSink> const& Return type: std::set< eLoggerSink > const &

Function withLogLevel

Sets the log level for the Logger. Parameters:
  • log_level: The Logger loglevel.
Returns: LoggerConfig& Parameters:
  • eLogLevel log_level
Return type: LoggerConfig &

Function withSinks

Sets a single sink for the Logger to write to. Parameters:
  • sink: The sink to write to.
Returns: LoggerConfig& Parameters:
  • eLoggerSink sink
Return type: LoggerConfig &

Function withSinks

Sets a list of sinks for the Logger to write to. Parameters:
  • sinks: The sinks to write to.
Returns: LoggerConfig& Parameters:
  • std::set< eLoggerSink > const & sinks
Return type: LoggerConfig &

Public static functions

Function defaultConfig

Returns the default config for logging. Returns: LoggerConfig Return type: LoggerConfig