Agora  1.2.0
Agora project
spdlog::sinks::test_sink< Mutex > Class Template Reference

#include <test_sink.h>

Inheritance diagram for spdlog::sinks::test_sink< Mutex >:
Collaboration diagram for spdlog::sinks::test_sink< Mutex >:

Public Member Functions

size_t msg_counter ()
 
size_t flush_counter ()
 
void set_delay (std::chrono::milliseconds delay)
 
std::vector< std::string > lines ()
 
- Public Member Functions inherited from spdlog::sinks::base_sink< Mutex >
 base_sink ()
 
 base_sink (std::unique_ptr< spdlog::formatter > formatter)
 
 ~base_sink () override=default
 
 base_sink (const base_sink &)=delete
 
 base_sink (base_sink &&)=delete
 
base_sinkoperator= (const base_sink &)=delete
 
base_sinkoperator= (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
virtual ~sink ()=default
 
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 details::log_msg &msg) override
 
void flush_ () override
 
- Protected Member Functions inherited from spdlog::sinks::base_sink< Mutex >
virtual void set_pattern_ (const std::string &pattern)
 
virtual void set_formatter_ (std::unique_ptr< spdlog::formatter > sink_formatter)
 

Protected Attributes

size_t msg_counter_ {0}
 
size_t flush_counter_ {0}
 
std::chrono::milliseconds delay_ {std::chrono::milliseconds::zero()}
 
std::vector< std::string > lines_
 
- Protected Attributes inherited from spdlog::sinks::base_sink< Mutex >
std::unique_ptr< spdlog::formatterformatter_
 
Mutex mutex_
 
- Protected Attributes inherited from spdlog::sinks::sink
level_t level_ {level::trace}
 

Private Attributes

const size_t lines_to_save = 100
 

Member Function Documentation

◆ flush_()

template<class Mutex >
void spdlog::sinks::test_sink< Mutex >::flush_ ( )
inlineoverrideprotectedvirtual

◆ flush_counter()

template<class Mutex >
size_t spdlog::sinks::test_sink< Mutex >::flush_counter ( )
inline

◆ lines()

template<class Mutex >
std::vector<std::string> spdlog::sinks::test_sink< Mutex >::lines ( )
inline

◆ msg_counter()

template<class Mutex >
size_t spdlog::sinks::test_sink< Mutex >::msg_counter ( )
inline

◆ set_delay()

template<class Mutex >
void spdlog::sinks::test_sink< Mutex >::set_delay ( std::chrono::milliseconds  delay)
inline

◆ sink_it_()

template<class Mutex >
void spdlog::sinks::test_sink< Mutex >::sink_it_ ( const details::log_msg msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Here is the call graph for this function:

Member Data Documentation

◆ delay_

template<class Mutex >
std::chrono::milliseconds spdlog::sinks::test_sink< Mutex >::delay_ {std::chrono::milliseconds::zero()}
protected

◆ flush_counter_

template<class Mutex >
size_t spdlog::sinks::test_sink< Mutex >::flush_counter_ {0}
protected

◆ lines_

template<class Mutex >
std::vector<std::string> spdlog::sinks::test_sink< Mutex >::lines_
protected

◆ lines_to_save

template<class Mutex >
const size_t spdlog::sinks::test_sink< Mutex >::lines_to_save = 100
private

◆ msg_counter_

template<class Mutex >
size_t spdlog::sinks::test_sink< Mutex >::msg_counter_ {0}
protected

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