Agora  1.2.0
Agora project
spdlog::sinks::stdout_sink_base< ConsoleMutex > Class Template Reference

#include <stdout_sinks.h>

Inheritance diagram for spdlog::sinks::stdout_sink_base< ConsoleMutex >:
Collaboration diagram for spdlog::sinks::stdout_sink_base< ConsoleMutex >:

Public Types

using mutex_t = typename ConsoleMutex::mutex_t
 

Public Member Functions

 stdout_sink_base (FILE *file)
 
 ~stdout_sink_base () override=default
 
 stdout_sink_base (const stdout_sink_base &other)=delete
 
 stdout_sink_base (stdout_sink_base &&other)=delete
 
stdout_sink_baseoperator= (const stdout_sink_base &other)=delete
 
stdout_sink_baseoperator= (stdout_sink_base &&other)=delete
 
void log (const details::log_msg &msg) override
 
void flush () override
 
void set_pattern (const std::string &pattern) override
 
void set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) override
 
- 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 Attributes

mutex_tmutex_
 
FILE * file_
 
std::unique_ptr< spdlog::formatterformatter_
 
- Protected Attributes inherited from spdlog::sinks::sink
level_t level_ {level::trace}
 

Member Typedef Documentation

◆ mutex_t

template<typename ConsoleMutex >
using spdlog::sinks::stdout_sink_base< ConsoleMutex >::mutex_t = typename ConsoleMutex::mutex_t

Constructor & Destructor Documentation

◆ stdout_sink_base() [1/3]

template<typename ConsoleMutex >
SPDLOG_INLINE spdlog::sinks::stdout_sink_base< ConsoleMutex >::stdout_sink_base ( FILE *  file)
explicit
Here is the call graph for this function:

◆ ~stdout_sink_base()

template<typename ConsoleMutex >
spdlog::sinks::stdout_sink_base< ConsoleMutex >::~stdout_sink_base ( )
overridedefault

◆ stdout_sink_base() [2/3]

template<typename ConsoleMutex >
spdlog::sinks::stdout_sink_base< ConsoleMutex >::stdout_sink_base ( const stdout_sink_base< ConsoleMutex > &  other)
delete

◆ stdout_sink_base() [3/3]

template<typename ConsoleMutex >
spdlog::sinks::stdout_sink_base< ConsoleMutex >::stdout_sink_base ( stdout_sink_base< ConsoleMutex > &&  other)
delete

Member Function Documentation

◆ flush()

template<typename ConsoleMutex >
SPDLOG_INLINE void spdlog::sinks::stdout_sink_base< ConsoleMutex >::flush
overridevirtual

Implements spdlog::sinks::sink.

◆ log()

template<typename ConsoleMutex >
SPDLOG_INLINE void spdlog::sinks::stdout_sink_base< ConsoleMutex >::log ( const details::log_msg msg)
overridevirtual

Implements spdlog::sinks::sink.

Here is the call graph for this function:

◆ operator=() [1/2]

template<typename ConsoleMutex >
stdout_sink_base& spdlog::sinks::stdout_sink_base< ConsoleMutex >::operator= ( const stdout_sink_base< ConsoleMutex > &  other)
delete

◆ operator=() [2/2]

template<typename ConsoleMutex >
stdout_sink_base& spdlog::sinks::stdout_sink_base< ConsoleMutex >::operator= ( stdout_sink_base< ConsoleMutex > &&  other)
delete

◆ set_formatter()

template<typename ConsoleMutex >
SPDLOG_INLINE void spdlog::sinks::stdout_sink_base< ConsoleMutex >::set_formatter ( std::unique_ptr< spdlog::formatter sink_formatter)
overridevirtual

Implements spdlog::sinks::sink.

◆ set_pattern()

template<typename ConsoleMutex >
SPDLOG_INLINE void spdlog::sinks::stdout_sink_base< ConsoleMutex >::set_pattern ( const std::string &  pattern)
overridevirtual

Implements spdlog::sinks::sink.

Member Data Documentation

◆ file_

template<typename ConsoleMutex >
FILE* spdlog::sinks::stdout_sink_base< ConsoleMutex >::file_
protected

◆ formatter_

template<typename ConsoleMutex >
std::unique_ptr<spdlog::formatter> spdlog::sinks::stdout_sink_base< ConsoleMutex >::formatter_
protected

◆ mutex_

template<typename ConsoleMutex >
mutex_t& spdlog::sinks::stdout_sink_base< ConsoleMutex >::mutex_
protected

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