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>
|
| 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 |
| |
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.
◆ 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 |
◆ 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: