It provides functions with format specifier to compose and log message via provided Logger.
More...
#include <FormattingLogger.h>
|
| 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.
|
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++
◆ FormattingLogger()
◆ GetLogger()
| std::shared_ptr< Logger > GetLogger |
( |
| ) |
const |
|
inlinenodiscard |
◆ LogDebug()
template<typename... Args>
| void LogDebug |
( |
const char * | format, |
|
|
Args &&... | args ) const |
|
inline |
Formats and logs message as debug message.
- Parameters
-
| format | It accepts all specifiers as defined for printf function. Plus it defines own one 'v'. Argument specified with 'v' specifier is passed to Writer. |
| args | variadic 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
-
| format | It accepts all specifiers as defined for printf function. Plus it defines own one 'v'. Argument specified with 'v' specifier is passed to Writer. |
| args | variadic 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
-
| format | It accepts all specifiers as defined for printf function. Plus it defines own one 'v'. Argument specified with 'v' specifier is passed to Writer. |
| args | variadic arguments that corresponds to format |
Referenced by FaceCapture::Draw(), and FaceCapture::Draw().
The documentation for this class was generated from the following file: