spdlog
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
spdlog::sinks::sink Class Referenceabstract

Detailed Description

Definition at line 12 of file sink.h.

#include <sink.h>

Inheritance diagram for spdlog::sinks::sink:
[legend]

Public Member Functions

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
 
void set_level (level::level_enum log_level)
 
level::level_enum level () const
 
bool should_log (level::level_enum msg_level) const
 

Protected Attributes

level_t level_ {level::trace}
 

Constructor & Destructor Documentation

◆ ~sink()

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

Member Function Documentation

◆ flush()

virtual void spdlog::sinks::sink::flush ( )
pure virtual

◆ level()

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

Definition at line 22 of file sink-inl.h.

◆ log()

virtual void spdlog::sinks::sink::log ( const details::log_msg msg)
pure virtual

◆ set_formatter()

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

◆ set_level()

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

Definition at line 17 of file sink-inl.h.

◆ set_pattern()

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

◆ should_log()

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

Definition at line 12 of file sink-inl.h.

Member Data Documentation

◆ level_

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

Definition at line 27 of file sink.h.


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