Agora  1.2.0
Agora project
spdlog::sinks::ringbuffer_sink< Mutex > Class Template Referencefinal

#include <ringbuffer_sink.h>

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

Public Member Functions

 ringbuffer_sink (size_t n_items)
 
std::vector< details::log_msg_bufferlast_raw (size_t lim=0)
 
std::vector< std::string > last_formatted (size_t lim=0)
 
- 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)
 

Private Attributes

details::circular_q< details::log_msg_bufferq_
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ringbuffer_sink()

template<typename Mutex >
spdlog::sinks::ringbuffer_sink< Mutex >::ringbuffer_sink ( size_t  n_items)
inlineexplicit

Member Function Documentation

◆ flush_()

template<typename Mutex >
void spdlog::sinks::ringbuffer_sink< Mutex >::flush_ ( )
inlineoverrideprotectedvirtual

◆ last_formatted()

template<typename Mutex >
std::vector<std::string> spdlog::sinks::ringbuffer_sink< Mutex >::last_formatted ( size_t  lim = 0)
inline
Here is the call graph for this function:

◆ last_raw()

template<typename Mutex >
std::vector<details::log_msg_buffer> spdlog::sinks::ringbuffer_sink< Mutex >::last_raw ( size_t  lim = 0)
inline

◆ sink_it_()

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

Member Data Documentation

◆ q_

template<typename Mutex >
details::circular_q<details::log_msg_buffer> spdlog::sinks::ringbuffer_sink< Mutex >::q_
private

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