Agora  1.2.0
Agora project
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 ()=default
 
 dist_sink (std::vector< std::shared_ptr< sink >> sinks)
 
 dist_sink (const dist_sink &)=delete
 
dist_sinkoperator= (const dist_sink &)=delete
 
void add_sink (std::shared_ptr< sink > sink)
 
void remove_sink (std::shared_ptr< sink > sink)
 
void set_sinks (std::vector< std::shared_ptr< sink >> sinks)
 
std::vector< std::shared_ptr< sink > > & sinks ()
 
- Public Member Functions inherited from spdlog::sinks::base_sink< Mutex >
 base_sink ()
 
 base_sink (std::unique_ptr< spdlog::formatter > formatter)
 
 ~base_sink () override=default
 
 base_sink (const base_sink &)=delete
 
 base_sink (base_sink &&)=delete
 
base_sinkoperator= (const base_sink &)=delete
 
base_sinkoperator= (base_sink &&)=delete
 
void log (const details::log_msg &msg) final
 
void flush () final
 
void set_pattern (const std::string &pattern) final
 
void set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) final
 
- Public Member Functions inherited from spdlog::sinks::sink
virtual ~sink ()=default
 
void set_level (level::level_enum log_level)
 
level::level_enum level () const
 
bool should_log (level::level_enum msg_level) const
 

Protected Member Functions

void sink_it_ (const details::log_msg &msg) override
 
void flush_ () override
 
void set_pattern_ (const std::string &pattern) override
 
void set_formatter_ (std::unique_ptr< spdlog::formatter > sink_formatter) override
 

Protected Attributes

std::vector< std::shared_ptr< sink > > sinks_
 
- Protected Attributes inherited from spdlog::sinks::base_sink< Mutex >
std::unique_ptr< spdlog::formatterformatter_
 
Mutex mutex_
 
- Protected Attributes inherited from spdlog::sinks::sink
level_t level_ {level::trace}
 

Constructor & Destructor Documentation

◆ dist_sink() [1/3]

template<typename Mutex >
spdlog::sinks::dist_sink< Mutex >::dist_sink ( )
default

◆ dist_sink() [2/3]

template<typename Mutex >
spdlog::sinks::dist_sink< Mutex >::dist_sink ( std::vector< std::shared_ptr< sink >>  sinks)
inlineexplicit

◆ dist_sink() [3/3]

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

Member Function Documentation

◆ add_sink()

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

◆ flush_()

template<typename Mutex >
void spdlog::sinks::dist_sink< Mutex >::flush_ ( )
inlineoverrideprotectedvirtual

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

Here is the call graph for this function:

◆ operator=()

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

◆ remove_sink()

template<typename Mutex >
void spdlog::sinks::dist_sink< Mutex >::remove_sink ( std::shared_ptr< sink sink)
inline
Here is the call graph for this function:

◆ set_formatter_()

template<typename Mutex >
void spdlog::sinks::dist_sink< Mutex >::set_formatter_ ( std::unique_ptr< spdlog::formatter sink_formatter)
inlineoverrideprotectedvirtual

Reimplemented from spdlog::sinks::base_sink< Mutex >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_pattern_()

template<typename Mutex >
void spdlog::sinks::dist_sink< Mutex >::set_pattern_ ( const std::string &  pattern)
inlineoverrideprotectedvirtual

Reimplemented from spdlog::sinks::base_sink< Mutex >.

Here is the call graph for this function:

◆ set_sinks()

template<typename Mutex >
void spdlog::sinks::dist_sink< Mutex >::set_sinks ( std::vector< std::shared_ptr< sink >>  sinks)
inline
Here is the call graph for this function:

◆ sink_it_()

template<typename Mutex >
void spdlog::sinks::dist_sink< Mutex >::sink_it_ ( const details::log_msg msg)
inlineoverrideprotectedvirtual

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

Reimplemented in spdlog::sinks::dup_filter_sink< Mutex >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sinks()

template<typename Mutex >
std::vector<std::shared_ptr<sink> >& spdlog::sinks::dist_sink< Mutex >::sinks ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ sinks_

template<typename Mutex >
std::vector<std::shared_ptr<sink> > spdlog::sinks::dist_sink< Mutex >::sinks_
protected

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