microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
microfmt::log::syslog_sink< Capacity > Class Template Reference

Adapter that writes structured records to POSIX syslog. More...

#include <syslog_sink.hpp>

Public Types

using write_fn_t = void(*)(int priority, microfmt::string_view message) noexcept
 

Public Member Functions

constexpr syslog_sink (write_fn_t write_fn=write_to_syslog) noexcept
 
log_sink as_sink () &noexcept RELOCO_LIFETIMEBOUND
 
void log_impl (const log_msg &msg) noexcept
 

Detailed Description

template<std::size_t Capacity = 256>
class microfmt::log::syslog_sink< Capacity >

Adapter that writes structured records to POSIX syslog.

Member Typedef Documentation

◆ write_fn_t

template<std::size_t Capacity = 256>
using microfmt::log::syslog_sink< Capacity >::write_fn_t = void (*)(int priority, microfmt::string_view message) noexcept

Constructor & Destructor Documentation

◆ syslog_sink()

template<std::size_t Capacity = 256>
constexpr microfmt::log::syslog_sink< Capacity >::syslog_sink ( write_fn_t  write_fn = write_to_syslog)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ as_sink()

template<std::size_t Capacity = 256>
log_sink microfmt::log::syslog_sink< Capacity >::as_sink ( ) &
inlinenoexcept

◆ log_impl()

template<std::size_t Capacity = 256>
void microfmt::log::syslog_sink< Capacity >::log_impl ( const log_msg &  msg)
inlinenoexcept

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