spdlog
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
failing_sink Class Reference

Detailed Description

Definition at line 11 of file test_errors.cpp.

Inheritance diagram for failing_sink:
[legend]

Public Member Functions

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
 
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

void sink_it_ (const spdlog::details::log_msg &) final
 
void flush_ () final
 
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_
 
std::mutex mutex_
 
level_t level_ {level::trace}
 

Member Function Documentation

◆ flush()

void SPDLOG_INLINE spdlog::sinks::base_sink< std::mutex >::flush ( )
finalvirtualinherited

Implements spdlog::sinks::sink.

Definition at line 33 of file base_sink-inl.h.

◆ flush_()

void failing_sink::flush_ ( )
inlinefinalprotectedvirtual

Implements spdlog::sinks::base_sink< std::mutex >.

Definition at line 19 of file test_errors.cpp.

◆ level()

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

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

◆ log()

void SPDLOG_INLINE spdlog::sinks::base_sink< std::mutex >::log ( const details::log_msg msg)
finalvirtualinherited

Implements spdlog::sinks::sink.

Definition at line 32 of file base_sink-inl.h.

◆ set_formatter()

void SPDLOG_INLINE spdlog::sinks::base_sink< std::mutex >::set_formatter ( std::unique_ptr< spdlog::formatter sink_formatter)
finalvirtualinherited

Implements spdlog::sinks::sink.

Definition at line 35 of file base_sink-inl.h.

◆ set_formatter_()

void SPDLOG_INLINE spdlog::sinks::base_sink< std::mutex >::set_formatter_ ( std::unique_ptr< spdlog::formatter sink_formatter)
protectedvirtualinherited

Definition at line 45 of file base_sink-inl.h.

◆ set_level()

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

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

◆ set_pattern()

void SPDLOG_INLINE spdlog::sinks::base_sink< std::mutex >::set_pattern ( const std::string pattern)
finalvirtualinherited

Implements spdlog::sinks::sink.

Definition at line 34 of file base_sink-inl.h.

◆ set_pattern_()

void SPDLOG_INLINE spdlog::sinks::base_sink< std::mutex >::set_pattern_ ( const std::string pattern)
protectedvirtualinherited

Definition at line 44 of file base_sink-inl.h.

◆ should_log()

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

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

◆ sink_it_()

void failing_sink::sink_it_ ( const spdlog::details::log_msg )
inlinefinalprotectedvirtual

Implements spdlog::sinks::base_sink< std::mutex >.

Definition at line 14 of file test_errors.cpp.

Member Data Documentation

◆ formatter_

Definition at line 39 of file base_sink.h.

◆ level_

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

Definition at line 27 of file sink.h.

◆ mutex_

std::mutex spdlog::sinks::base_sink< std::mutex >::mutex_
mutableprotectedinherited

Definition at line 40 of file base_sink.h.


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