Skip to main content
Logger interface. All public methods are thread-safe.

Members

Public functions

Function valid

Returns if the logger is valid. By design, the logging API will never error and there could be situations where a non-functional Logger instance will be returned. E.g if trying to register a logger with a name that is already registered or with an invalid name, or get a logger with a name which does not exist or is invalid. If the Logger is invalid, all method calls like flush() or log() will be NOPs. Returns: std::string Return type: bool

Function name

Return the name of the Logger. Returns: std::string Return type: std::string

Function flush

Flush all logger messages to the active sinks. Return type: void

Function trace

Logs a message with the trace loglevel. Parameters:
  • message: The string to be logged.
Parameters:
  • T const & message
Return type: void

Function debug

Logs a message with the debug loglevel. Parameters:
  • message: The string to be logged.
Parameters:
  • T const & message
Return type: void

Function info

Logs a message with the info loglevel. Parameters:
  • message: The string to be logged.
Parameters:
  • T const & message
Return type: void

Function warning

Logs a message with the warning loglevel. Parameters:
  • message: The string to be logged.
Parameters:
  • T const & message
Return type: void

Function error

Logs a message with the error loglevel. Parameters:
  • message: The string to be logged.
Parameters:
  • T const & message
Return type: void

Function critical

Logs a message with the critical loglevel. Parameters:
  • message: The string to be logged.
Parameters:
  • T const & message
Return type: void

Function log

Logs a message with the critical loglevel. Parameters:
  • message: The string to be logged.
Parameters:
  • T const & message
  • eLogLevel loglevel
Return type: void