Helper object that simplfies use of ILogger.
More...
#include <r5logger.h>
|
| | LoggerWrapper (ILoggerPtr t) |
| | Default constructor. More...
|
| |
| template<class... Args> |
| void | trace (const std::string format, const Args &... args) |
| | Log message with Trace log level. More...
|
| |
| template<class... Args> |
| void | info (const std::string format, const Args &... args) |
| | Log message with Info log level. More...
|
| |
| template<class... Args> |
| void | warn (const std::string format, const Args &... args) |
| | Log message with Warn log level. More...
|
| |
| template<class... Args> |
| void | error (const std::string format, const Args &... args) |
| | Log message with Error log level. More...
|
| |
| template<class... Args> |
| void | debug (const std::string format, const Args &... args) |
| | Log message with Debug log level. More...
|
| |
|
| template<class... Args> |
| void | log (LogLevel level, const std::string format, const Args &... args) |
| | Log message with specified log level. More...
|
| |
| template<class... Args> |
| void | log (const std::chrono::system_clock::time_point &time, LogLevel level, const std::string format, const Args &... args) |
| | Log message with specified log level and timestamp. More...
|
| |
|
|
ILoggerPtr | mT |
| | internal pointer to logger instance
|
| |
Helper object that simplfies use of ILogger.
◆ LoggerWrapper()
| r5::common::LoggerWrapper::LoggerWrapper |
( |
ILoggerPtr |
t | ) |
|
|
inline |
Default constructor.
- Parameters
-
| t | pointer to logger implementation |
◆ debug()
template<class... Args>
| void r5::common::LoggerWrapper::debug |
( |
const std::string |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
Log message with Debug log level.
- Parameters
-
| format | pointer to a null-terminated multibyte string specifying how to interpret the data |
| args | arguments specifying data to print |
◆ error()
template<class... Args>
| void r5::common::LoggerWrapper::error |
( |
const std::string |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
Log message with Error log level.
- Parameters
-
| format | pointer to a null-terminated multibyte string specifying how to interpret the data |
| args | arguments specifying data to print |
◆ info()
template<class... Args>
| void r5::common::LoggerWrapper::info |
( |
const std::string |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
Log message with Info log level.
- Parameters
-
| format | pointer to a null-terminated multibyte string specifying how to interpret the data |
| args | arguments specifying data to print |
◆ log() [1/2]
template<class... Args>
| void r5::common::LoggerWrapper::log |
( |
LogLevel |
level, |
|
|
const std::string |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inlineprotected |
Log message with specified log level.
- Parameters
-
| level | log level for the message |
| format | pointer to a null-terminated multibyte string specifying how to interpret the data |
| args | arguments specifying data to print |
◆ log() [2/2]
template<class... Args>
| void r5::common::LoggerWrapper::log |
( |
const std::chrono::system_clock::time_point & |
time, |
|
|
LogLevel |
level, |
|
|
const std::string |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inlineprotected |
Log message with specified log level and timestamp.
- Parameters
-
| time | timestamp for the message |
| level | log level for the message |
| format | pointer to a null-terminated multibyte string specifying how to interpret the data |
| args | arguments specifying data to print |
◆ trace()
template<class... Args>
| void r5::common::LoggerWrapper::trace |
( |
const std::string |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
Log message with Trace log level.
- Parameters
-
| format | pointer to a null-terminated multibyte string specifying how to interpret the data |
| args | arguments specifying data to print |
◆ warn()
template<class... Args>
| void r5::common::LoggerWrapper::warn |
( |
const std::string |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
Log message with Warn log level.
- Parameters
-
| format | pointer to a null-terminated multibyte string specifying how to interpret the data |
| args | arguments specifying data to print |
The documentation for this class was generated from the following file: