WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
spdlog::sinks::sink Class Referenceabstract

#include <sink.h>

Inheritance diagram for spdlog::sinks::sink:

Public Member Functions

 sink ()
 
 sink (std::unique_ptr< spdlog::pattern_formatter > formatter)
 
virtual ~sink ()=default
 
virtual void log (const details::log_msg &msg)=0
 
virtual void flush ()=0
 
virtual void set_pattern (const std::string &pattern)=0
 
virtual void set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter)=0
 
bool should_log (level::level_enum msg_level) const
 
void set_level (level::level_enum log_level)
 
level::level_enum level () const
 

Protected Attributes

level_t level_
 
std::unique_ptr< spdlog::formatterformatter_
 

Detailed Description

Definition at line 14 of file sink.h.

Constructor & Destructor Documentation

◆ sink() [1/2]

spdlog::sinks::sink::sink ( )
inline

Definition at line 17 of file sink.h.

Here is the caller graph for this function:

◆ sink() [2/2]

spdlog::sinks::sink::sink ( std::unique_ptr< spdlog::pattern_formatter formatter)
inlineexplicit

Definition at line 23 of file sink.h.

Here is the call graph for this function:

◆ ~sink()

virtual spdlog::sinks::sink::~sink ( )
virtualdefault
Here is the caller graph for this function:

Member Function Documentation

◆ flush()

◆ level()

level::level_enum spdlog::sinks::sink::level ( ) const
inline

Definition at line 45 of file sink.h.

Here is the caller graph for this function:

◆ log()

◆ set_formatter()

virtual void spdlog::sinks::sink::set_formatter ( std::unique_ptr< spdlog::formatter sink_formatter)
pure virtual

◆ set_level()

void spdlog::sinks::sink::set_level ( level::level_enum  log_level)
inline

Definition at line 40 of file sink.h.

◆ set_pattern()

virtual void spdlog::sinks::sink::set_pattern ( const std::string &  pattern)
pure virtual

◆ should_log()

bool spdlog::sinks::sink::should_log ( level::level_enum  msg_level) const
inline

Definition at line 35 of file sink.h.

Here is the caller graph for this function:

Member Data Documentation

◆ formatter_

std::unique_ptr<spdlog::formatter> spdlog::sinks::sink::formatter_
protected

Definition at line 55 of file sink.h.

◆ level_

level_t spdlog::sinks::sink::level_
protected

Definition at line 52 of file sink.h.


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