Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
spdlog::sinks::CallbackSink< Mutex > Class Template Reference

#include <callbackSink.hpp>

Inheritance diagram for spdlog::sinks::CallbackSink< Mutex >:
Inheritance graph
Collaboration diagram for spdlog::sinks::CallbackSink< Mutex >:
Collaboration graph

Public Member Functions

 CallbackSink (std::string tag="spdlog", LogCallback callback=nullptr, void(*flush)()=nullptr)
 
void set_callback (LogCallback callback)
 
void set_flush (void(*flush)())
 

Protected Member Functions

void sink_it_ (const details::log_msg &msg) override
 
void flush_ () override
 

Protected Attributes

LogCallback _callback
 
void(* _flush )()
 

Constructor & Destructor Documentation

◆ CallbackSink()

template<class Mutex >
spdlog::sinks::CallbackSink< Mutex >::CallbackSink ( std::string  tag = "spdlog",
LogCallback  callback = nullptr,
void(*)()  flush = nullptr 
)
inlineexplicit

Member Function Documentation

◆ flush_()

template<class Mutex >
void spdlog::sinks::CallbackSink< Mutex >::flush_ ( )
inlineoverrideprotected

◆ set_callback()

template<class Mutex >
void spdlog::sinks::CallbackSink< Mutex >::set_callback ( LogCallback  callback)
inline

◆ set_flush()

template<class Mutex >
void spdlog::sinks::CallbackSink< Mutex >::set_flush ( void(*)()  flush)
inline

◆ sink_it_()

template<class Mutex >
void spdlog::sinks::CallbackSink< Mutex >::sink_it_ ( const details::log_msg &  msg)
inlineoverrideprotected

Member Data Documentation

◆ _callback

template<class Mutex >
LogCallback spdlog::sinks::CallbackSink< Mutex >::_callback
protected

◆ _flush

template<class Mutex >
void(* spdlog::sinks::CallbackSink< Mutex >::_flush) ()
protected

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