WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
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 ()=default
 
 base_sink (const base_sink &)=delete
 
base_sinkoperator= (const 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
 sink ()
 
 sink (std::unique_ptr< spdlog::pattern_formatter > formatter)
 
virtual ~sink ()=default
 
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

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

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

Detailed Description

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

Definition at line 22 of file base_sink.h.

Constructor & Destructor Documentation

◆ base_sink() [1/2]

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

◆ base_sink() [2/2]

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

Member Function Documentation

◆ flush()

template<typename Mutex >
void spdlog::sinks::base_sink< Mutex >::flush ( )
inlinefinalvirtual

Implements spdlog::sinks::sink.

Definition at line 35 of file base_sink.h.

Here is the call graph for this function:

◆ flush_()

◆ log()

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

Implements spdlog::sinks::sink.

Definition at line 29 of file base_sink.h.

Here is the call graph for this function:

◆ operator=()

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

◆ set_formatter()

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

Implements spdlog::sinks::sink.

Definition at line 47 of file base_sink.h.

Here is the call graph for this function:

◆ set_formatter_()

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

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

Definition at line 62 of file base_sink.h.

Here is the caller graph for this function:

◆ set_pattern()

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

Implements spdlog::sinks::sink.

Definition at line 41 of file base_sink.h.

Here is the call graph for this function:

◆ set_pattern_()

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

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

Definition at line 57 of file base_sink.h.

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

◆ sink_it_()

Member Data Documentation

◆ mutex_

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

Definition at line 66 of file base_sink.h.


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