Livox SDK API  V2.2.0
spdlog::sinks::sink Class Referenceabstract

#include <sink.h>

Inheritance diagram for spdlog::sinks::sink:
spdlog::sinks::ansicolor_sink< TargetStream, ConsoleMutex > spdlog::sinks::base_sink< Mutex > spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex > spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex > spdlog::sinks::android_sink< Mutex > spdlog::sinks::basic_file_sink< Mutex > spdlog::sinks::daily_file_sink< Mutex, FileNameCalc > spdlog::sinks::dist_sink< Mutex > spdlog::sinks::null_sink< Mutex > spdlog::sinks::ostream_sink< Mutex > spdlog::sinks::rotating_file_sink< Mutex > spdlog::sinks::syslog_sink< Mutex >

Public Member Functions

 sink ()=default
 
 sink (std::unique_ptr< spdlog::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_ {level::trace}
 
std::unique_ptr< spdlog::formatterformatter_ {details::make_unique<spdlog::pattern_formatter>()}
 

Detailed Description

Definition at line 14 of file sink.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file sink.h.

virtual spdlog::sinks::sink::~sink ( )
virtualdefault

Member Function Documentation

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

Definition at line 40 of file sink.h.

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

Definition at line 35 of file sink.h.

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

Definition at line 30 of file sink.h.

Member Data Documentation

std::unique_ptr<spdlog::formatter> spdlog::sinks::sink::formatter_ {details::make_unique<spdlog::pattern_formatter>()}
protected

Definition at line 50 of file sink.h.

level_t spdlog::sinks::sink::level_ {level::trace}
protected

Definition at line 47 of file sink.h.


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