Enrollment 28.2.0
Loading...
Searching...
No Matches
FormattingLogger Class Reference

It provides functions with format specifier to compose and log message via provided Logger. More...

#include <FormattingLogger.h>

Collaboration diagram for FormattingLogger:

Public Member Functions

template<typename... Args>
void LogInfo (const char *format, Args &&... args) const
 Formats and logs message as info message.
template<typename... Args>
void LogDebug (const char *format, Args &&... args) const
 Formats and logs message as debug message.
template<typename... Args>
void LogError (const char *format, Args &&... args) const
 Formats and logs message as error message.
 FormattingLogger (std::shared_ptr< Logger > logger)
 Constructs FormattingLogger.
std::shared_ptr< Logger > GetLogger () const
 Get the Logger object.

Detailed Description

It provides functions with format specifier to compose and log message via provided Logger.

Function formats message with FormattingComposer and logs it. It accepts all specifiers as defined for printf function. Plus it defines own one 'v'. Argument specified with 'v' specifier is passed to Writer.

Note
Only for C++

Constructor & Destructor Documentation

◆ FormattingLogger()

FormattingLogger ( std::shared_ptr< Logger > logger)
inlineexplicit

Constructs FormattingLogger.

Parameters
loggerLogger to log formater text

Member Function Documentation

◆ GetLogger()

std::shared_ptr< Logger > GetLogger ( ) const
inlinenodiscard

Get the Logger object.

Returns
Logger

◆ LogDebug()

template<typename... Args>
void LogDebug ( const char * format,
Args &&... args ) const
inline

Formats and logs message as debug message.

Parameters
formatIt accepts all specifiers as defined for printf function. Plus it defines own one 'v'. Argument specified with 'v' specifier is passed to Writer.
argsvariadic arguments that corresponds to format

◆ LogError()

template<typename... Args>
void LogError ( const char * format,
Args &&... args ) const
inline

Formats and logs message as error message.

Parameters
formatIt accepts all specifiers as defined for printf function. Plus it defines own one 'v'. Argument specified with 'v' specifier is passed to Writer.
argsvariadic arguments that corresponds to format

◆ LogInfo()

template<typename... Args>
void LogInfo ( const char * format,
Args &&... args ) const
inline

Formats and logs message as info message.

Parameters
formatIt accepts all specifiers as defined for printf function. Plus it defines own one 'v'. Argument specified with 'v' specifier is passed to Writer.
argsvariadic arguments that corresponds to format

Referenced by FaceCapture::Draw(), and FaceCapture::Draw().

Here is the caller graph for this function:

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