microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
microfmt::log::extended_log_msg Struct Reference

log_msg plus log_meta. Derives from the original record, so it converts to const log_msg & anywhere the plain API is expected. More...

#include <extended_msg.hpp>

Inheritance diagram for microfmt::log::extended_log_msg:
Inheritance graph
[legend]
Collaboration diagram for microfmt::log::extended_log_msg:
Collaboration graph
[legend]

Public Member Functions

constexpr extended_log_msg ()=default
 
constexpr extended_log_msg (const log_msg &base, const log_meta &m={}) noexcept
 

Public Attributes

log_meta meta {}
 
- Public Attributes inherited from microfmt::log::log_msg
microfmt::string_view logger_name {}
 
level lvl {level::info}
 
microfmt::instant time {microfmt::instant::now()}
 
microfmt::string_view payload {}
 
std::source_location loc {std::source_location::current()}
 

Detailed Description

log_msg plus log_meta. Derives from the original record, so it converts to const log_msg & anywhere the plain API is expected.

Constructor & Destructor Documentation

◆ extended_log_msg() [1/2]

constexpr microfmt::log::extended_log_msg::extended_log_msg ( )
constexprdefault

◆ extended_log_msg() [2/2]

constexpr microfmt::log::extended_log_msg::extended_log_msg ( const log_msg &  base,
const log_meta &  m = {} 
)
inlineexplicitconstexprnoexcept

Member Data Documentation

◆ meta

log_meta microfmt::log::extended_log_msg::meta {}

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