0.2.0
Loading...
Searching...
No Matches
spdlog::sinks::dist_filter_sink< Mutex > Class Template Reference

Distribution sink (mux) with filter option. More...

Public Member Functions

 dist_filter_sink (const dist_filter_sink &)=delete
 Copy constructor.
 
 dist_filter_sink (const std::string &filter)
 Default constructor.
 
 dist_filter_sink (dist_filter_sink &&) noexcept=default
 Move constructor.
 
dist_filter_sinkoperator= (const dist_filter_sink &)=delete
 Copy assignment operator.
 
dist_filter_sinkoperator= (dist_filter_sink &&) noexcept=default
 Move assignment operator.
 
 ~dist_filter_sink () override=default
 Destructor.
 

Protected Member Functions

void sink_it_ (const spdlog::details::log_msg &msg) override
 Function called to process the log message.
 

Protected Attributes

std::regex filter_
 String to filter messages for.
 

Detailed Description

template<typename Mutex>
class spdlog::sinks::dist_filter_sink< Mutex >

Distribution sink (mux) with filter option.

Constructor & Destructor Documentation

◆ dist_filter_sink()

template<typename Mutex >
spdlog::sinks::dist_filter_sink< Mutex >::dist_filter_sink ( const std::string & filter)
inlineexplicit

Default constructor.

Parameters
[in]filterFilter string

Member Function Documentation

◆ sink_it_()

template<typename Mutex >
void spdlog::sinks::dist_filter_sink< Mutex >::sink_it_ ( const spdlog::details::log_msg & msg)
inlineoverrideprotected

Function called to process the log message.

Parameters
msgLog message struct

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