Manipulates the channel of the current RecordBuilder object.
More...
#include <RecordBuilder.hpp>
|
| using | Sev_t = TSeverityLevel |
| |
|
| constexpr | SetSev (TSeverityLevel data) noexcept(std::is_nothrow_move_constructible_v< Sev_t >) |
| | Constructor accepting severity level data. More...
|
| |
| template<Record TRecord> |
| void | operator() (TRecord &rec) const |
| | Changes severity level of the passed Record object. More...
|
| |
template<class TSeverityLevel>
class sl::log::SetSev< TSeverityLevel >
Manipulates the channel of the current RecordBuilder object.
- Template Parameters
-
| TSeverityLevel | Severity level type which must later on be convertible to Record's severity level type. |
This type is generally designed to be directly used in logging expressions. When handed-over to a RecordBuilder instance by operator <<, it will then manipulate the severity level data of its constructing Record object.
- Examples
- ColorizedConsoleLogging/main.cpp, EasyStart/main.cpp, and FileLogging/main.cpp.
◆ Sev_t
template<class TSeverityLevel >
◆ SetSev()
template<class TSeverityLevel >
|
|
inlineexplicitconstexprnoexcept |
Constructor accepting severity level data.
- Parameters
-
◆ operator()()
template<class TSeverityLevel >
template<Record TRecord>
Changes severity level of the passed Record object.
- Template Parameters
-
- Parameters
-
| rec | The Record which is about to change |
The documentation for this class was generated from the following file: