Simple-Log  alpha-v0.7
sl::log::RecordGetters< TRecord > Struct Template Reference

Provides a layer of abstraction to Record member setter. More...

#include <Record.hpp>

Static Public Attributes

constexpr static auto message { [](auto& record) { return record.message(); } }
 
constexpr static auto severity { [](auto& record) { return record.severity(); } }
 
constexpr static auto channel { [](auto& record) { return record.channel(); } }
 
constexpr static auto timePoint { [](auto& record) { return record.timePoint(); } }
 

Detailed Description

template<class TRecord>
struct sl::log::RecordGetters< TRecord >

Provides a layer of abstraction to Record member setter.

Template Parameters
TRecordThe used Record type

There is no need for the users using this type of indirection. The library makes use of this abstraction, thus users may specialize it to use Record types, which does not fit in the original concept and trait syntax provided by this library.

Version
since alpha-v0.7

Member Data Documentation

◆ channel

template<class TRecord >
constexpr static auto sl::log::RecordGetters< TRecord >::channel { [](auto& record) { return record.channel(); } }
staticconstexpr

◆ message

template<class TRecord >
constexpr static auto sl::log::RecordGetters< TRecord >::message { [](auto& record) { return record.message(); } }
staticconstexpr

◆ severity

template<class TRecord >
constexpr static auto sl::log::RecordGetters< TRecord >::severity { [](auto& record) { return record.severity(); } }
staticconstexpr

◆ timePoint

template<class TRecord >
constexpr static auto sl::log::RecordGetters< TRecord >::timePoint { [](auto& record) { return record.timePoint(); } }
staticconstexpr

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