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

A log sink that serializes structured logs into a byte-oriented ring_buffer. Uses try_write_frame_evicting to safely auto-evict oldest frames without shredding data. More...

#include <ring_buffer_sink_protocol_sink.hpp>

Public Member Functions

constexpr ring_buffer_log_sink (reloco::detail::unowned_ring_base< char > &ring RELOCO_LIFETIMEBOUND RELOCO_LIFETIME_CAPTURE_BY_THIS) noexcept
 
log_sink as_sink () noexcept RELOCO_LIFETIMEBOUND
 
RELOCO_BEGIN_UNSAFE_CODE void log_impl (const log_msg &msg) const noexcept
 

Detailed Description

A log sink that serializes structured logs into a byte-oriented ring_buffer. Uses try_write_frame_evicting to safely auto-evict oldest frames without shredding data.

Constructor & Destructor Documentation

◆ ring_buffer_log_sink()

constexpr microfmt::log::ring_buffer_log_sink::ring_buffer_log_sink ( reloco::detail::unowned_ring_base< char > &ring RELOCO_LIFETIMEBOUND  RELOCO_LIFETIME_CAPTURE_BY_THIS)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ as_sink()

log_sink microfmt::log::ring_buffer_log_sink::as_sink ( )
inlinenoexcept

◆ log_impl()

RELOCO_BEGIN_UNSAFE_CODE void microfmt::log::ring_buffer_log_sink::log_impl ( const log_msg &  msg) const
inlinenoexcept

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