Agora  1.2.0
Agora project
spdlog::sinks::base_sink< Mutex > Class Template Referenceabstract

#include <base_sink.h>

Inheritance diagram for spdlog::sinks::base_sink< Mutex >:
Collaboration diagram for spdlog::sinks::base_sink< Mutex >:

Public Member Functions

 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

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

Protected Attributes

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

Constructor & Destructor Documentation

◆ base_sink() [1/4]

template<typename Mutex >
SPDLOG_INLINE spdlog::sinks::base_sink< Mutex >::base_sink

◆ base_sink() [2/4]

template<typename Mutex >
SPDLOG_INLINE spdlog::sinks::base_sink< Mutex >::base_sink ( std::unique_ptr< spdlog::formatter formatter)
explicit

◆ ~base_sink()

template<typename Mutex >
spdlog::sinks::base_sink< Mutex >::~base_sink ( )
overridedefault

◆ base_sink() [3/4]

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

◆ base_sink() [4/4]

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

Member Function Documentation

◆ flush()

template<typename Mutex >
void SPDLOG_INLINE spdlog::sinks::base_sink< Mutex >::flush
finalvirtual

Implements spdlog::sinks::sink.

◆ flush_()

◆ log()

template<typename Mutex >
void SPDLOG_INLINE spdlog::sinks::base_sink< Mutex >::log ( const details::log_msg msg)
finalvirtual

Implements spdlog::sinks::sink.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ set_formatter()

template<typename Mutex >
void SPDLOG_INLINE spdlog::sinks::base_sink< Mutex >::set_formatter ( std::unique_ptr< spdlog::formatter sink_formatter)
finalvirtual

Implements spdlog::sinks::sink.

◆ set_formatter_()

template<typename Mutex >
void SPDLOG_INLINE spdlog::sinks::base_sink< Mutex >::set_formatter_ ( std::unique_ptr< spdlog::formatter sink_formatter)
protectedvirtual

◆ set_pattern()

template<typename Mutex >
void SPDLOG_INLINE spdlog::sinks::base_sink< Mutex >::set_pattern ( const std::string &  pattern)
finalvirtual

Implements spdlog::sinks::sink.

◆ set_pattern_()

template<typename Mutex >
void SPDLOG_INLINE spdlog::sinks::base_sink< Mutex >::set_pattern_ ( const std::string &  pattern)
protectedvirtual

◆ sink_it_()

Member Data Documentation

◆ formatter_

template<typename Mutex >
std::unique_ptr<spdlog::formatter> spdlog::sinks::base_sink< Mutex >::formatter_
protected

◆ mutex_

template<typename Mutex >
Mutex spdlog::sinks::base_sink< Mutex >::mutex_
protected

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