Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
spdlog::sinks::dist_sink< Mutex > Class Template Reference

#include <dist_sink.h>

+ Inheritance diagram for spdlog::sinks::dist_sink< Mutex >:
+ Collaboration diagram for spdlog::sinks::dist_sink< Mutex >:

Public Member Functions

 dist_sink ()
 
 dist_sink (const dist_sink &)=delete
 
dist_sinkoperator= (const dist_sink &)=delete
 
virtual ~dist_sink ()=default
 
void add_sink (std::shared_ptr< sink > sink)
 
void remove_sink (std::shared_ptr< sink > sink)
 
- Public Member Functions inherited from spdlog::sinks::base_sink< Mutex >
 base_sink ()
 
virtual ~base_sink ()=default
 
 base_sink (const base_sink &)=delete
 
base_sinkoperator= (const base_sink &)=delete
 
void log (const details::log_msg &msg) SPDLOG_FINAL override
 
void flush () SPDLOG_FINAL override
 
- Public Member Functions inherited from spdlog::sinks::sink
 sink ()
 
virtual ~sink ()
 
bool should_log (level::level_enum msg_level) const
 
void set_level (level::level_enum log_level)
 
level::level_enum level () const
 

Protected Member Functions

void _sink_it (const details::log_msg &msg) override
 
void _flush () override
 

Protected Attributes

std::vector< std::shared_ptr< sink > > _sinks
 
- Protected Attributes inherited from spdlog::sinks::base_sink< Mutex >
Mutex _mutex
 

Detailed Description

template<class Mutex>
class spdlog::sinks::dist_sink< Mutex >

Definition at line 25 of file dist_sink.h.

Constructor & Destructor Documentation

◆ dist_sink() [1/2]

template<class Mutex >
spdlog::sinks::dist_sink< Mutex >::dist_sink ( )
inlineexplicit

Definition at line 28 of file dist_sink.h.

◆ dist_sink() [2/2]

template<class Mutex >
spdlog::sinks::dist_sink< Mutex >::dist_sink ( const dist_sink< Mutex > & )
delete

◆ ~dist_sink()

template<class Mutex >
virtual spdlog::sinks::dist_sink< Mutex >::~dist_sink ( )
virtualdefault

Member Function Documentation

◆ _flush()

template<class Mutex >
void spdlog::sinks::dist_sink< Mutex >::_flush ( )
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 47 of file dist_sink.h.

◆ _sink_it()

template<class Mutex >
void spdlog::sinks::dist_sink< Mutex >::_sink_it ( const details::log_msg & msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 36 of file dist_sink.h.

◆ add_sink()

template<class Mutex >
void spdlog::sinks::dist_sink< Mutex >::add_sink ( std::shared_ptr< sink > sink)
inline

Definition at line 56 of file dist_sink.h.

◆ operator=()

template<class Mutex >
dist_sink & spdlog::sinks::dist_sink< Mutex >::operator= ( const dist_sink< Mutex > & )
delete

◆ remove_sink()

template<class Mutex >
void spdlog::sinks::dist_sink< Mutex >::remove_sink ( std::shared_ptr< sink > sink)
inline

Definition at line 62 of file dist_sink.h.

Member Data Documentation

◆ _sinks

template<class Mutex >
std::vector<std::shared_ptr<sink> > spdlog::sinks::dist_sink< Mutex >::_sinks
protected

Definition at line 34 of file dist_sink.h.


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