HiveMind
Public Member Functions | List of all members
ILogger Class Referenceabstract

A logger class with basic logging capabilities. More...

#include <ILogger.h>

Inheritance diagram for ILogger:
Inheritance graph
Collaboration diagram for ILogger:
Collaboration graph

Public Member Functions

virtual ~ILogger ()=default
 
virtual LogRet log (LogLevel level, const char *format,...)=0
 Logs if the provided level is higher than the current log level (Thread-safe) More...
 
virtual LogRet log (LogLevel level, const char *format, va_list args)=0
 Logs if the provided level is higher than the current log level (Thread-safe) More...
 

Detailed Description

A logger class with basic logging capabilities.

Constructor & Destructor Documentation

◆ ~ILogger()

virtual ILogger::~ILogger ( )
virtualdefault

Member Function Documentation

◆ log() [1/2]

virtual LogRet ILogger::log ( LogLevel  level,
const char *  format,
va_list  args 
)
pure virtual

Logs if the provided level is higher than the current log level (Thread-safe)

Parameters
[in]levelthe log level of the current call
[in]formatText to be written, can contain format specifiers that will be replaced by values specified in the additionnal arguments, matches the standard printf function
[in]argsAdditionnal arguments for the format parameter

Implemented in Logger.

◆ log() [2/2]

virtual LogRet ILogger::log ( LogLevel  level,
const char *  format,
  ... 
)
pure virtual

Logs if the provided level is higher than the current log level (Thread-safe)

Parameters
[in]levelthe log level of the current call
[in]formatText to be written, can contain format specifiers that will be replaced by values specified in the additionnal arguments, matches the standard printf function
[in]...Additionnal arguments for the format parameter

Implemented in Logger.

Here is the caller graph for this function:

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