microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
log_msg.hpp File Reference

Structured log-record types and severity levels. More...

#include "../microfmt.hpp"
#include <cstdint>
#include <reloco/type_id.hpp>
#include <source_location>
#include <string_view>
Include dependency graph for log_msg.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  microfmt::log::log_msg
 Structured log record forwarded by a logger to each sink. More...
 

Namespaces

namespace  microfmt
 
namespace  microfmt::log
 

Enumerations

enum class  microfmt::log::level : uint8_t {
  microfmt::log::trace = 0 , microfmt::log::debug , microfmt::log::info , microfmt::log::warn ,
  microfmt::log::err , microfmt::log::critical , microfmt::log::off
}
 Shared log severity levels in ascending order. More...
 

Functions

constexpr microfmt::string_view microfmt::log::to_string_view (level lvl) noexcept
 
constexpr microfmt::string_view microfmt::log::to_short_string (level lvl) noexcept
 
 RELOCO_TYPE_ID_NAME (microfmt::log::log_msg, "microfmt::log::log_msg")
 
 RELOCO_TYPE_ID_NAME (microfmt::log::level, "microfmt::log::level")
 

Detailed Description

Structured log-record types and severity levels.

Function Documentation

◆ RELOCO_TYPE_ID_NAME() [1/2]

RELOCO_TYPE_ID_NAME ( microfmt::log::level  ,
"microfmt::log::level"   
)

◆ RELOCO_TYPE_ID_NAME() [2/2]

RELOCO_TYPE_ID_NAME ( microfmt::log::log_msg  ,
"microfmt::log::log_msg"   
)