Compose message from variadic arguments.
More...
#include <FormattingLogger.h>
Compose message from variadic arguments.
It stores reference to data to be logged in FormattingComposer::FormattingComposer and compose message when function FormattingComposer::Compose is called.
- Warning
- Stored references MUST exists in time of Compose call.
-
The implementation is not thread safe. It should be instantiated once per each thread or on function stack.
- Note
- Only for C++
◆ FormattingComposer()
template<typename... Args>
Constructs FormattingComposer.
- Parameters
-
| format | accepts all specifiers as defined for printf function. Plus it defines own one 'v'. Argument specified with 'v' specifier is passed to Writer. |
| arguments | variadic arguments that MUST correspond to format |
◆ Compose()
Compose message from stored references to variadic arguments.
- Returns
- message
Implements LogMessage.
The documentation for this class was generated from the following file: