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

Type-erased structured logging sinks and console output. More...

#include "../formatters/ansi.hpp"
#include "../formatters/reloco.hpp"
#include "../sinks/stdio.hpp"
#include "log_msg.hpp"
#include <cstddef>
#include <string_view>
#include <type_traits>
Include dependency graph for sink.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  microfmt::log::detail::has_log_sink_flush< Tag, typename >
 
struct  microfmt::log::detail::has_log_sink_flush< Tag, std::void_t< decltype(log_sink_traits< Tag >::flush(std::declval< value_ref< typename log_sink_traits< Tag >::context_type > >()))> >
 
struct  microfmt::log::detail::has_stateless_log_sink_flush< Tag, typename >
 
struct  microfmt::log::detail::has_stateless_log_sink_flush< Tag, std::void_t< decltype(log_sink_traits< Tag >::flush())> >
 
class  microfmt::log::log_sink
 Type-erased, two-word handle to a log sink backend, plus the severity threshold below which records are dropped before ever reaching the backend. More...
 
struct  microfmt::log::log_sink::vtable
 Virtual table of log sink operations. More...
 
struct  microfmt::log::stdout_color_sink_tag< LineBufCap >
 Tag selecting stdout_color_sink<LineBufCap> as a log_sink backend. More...
 
class  microfmt::log::stdout_color_sink< LineBufCap >
 ANSI-colorized stdout adapter for structured log records. More...
 
struct  microfmt::log::log_sink_traits< stdout_color_sink_tag< LineBufCap > >
 

Namespaces

namespace  microfmt
 
namespace  microfmt::log
 
namespace  microfmt::log::detail
 Fixed-capacity logger that formats records before dispatching to sinks.
 

Detailed Description

Type-erased structured logging sinks and console output.