Livox SDK API  V2.2.0
spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex > Class Template Referencefinal

#include <stdout_sinks.h>

Inheritance diagram for spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >:
spdlog::sinks::sink

Public Types

using mutex_t = typename ConsoleMutex::mutex_t
 

Public Member Functions

 stdout_sink ()
 
 ~stdout_sink () override=default
 
 stdout_sink (const stdout_sink &other)=delete
 
stdout_sinkoperator= (const stdout_sink &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
 sink ()=default
 
 sink (std::unique_ptr< spdlog::formatter > formatter)
 
virtual ~sink ()=default
 
bool should_log (level::level_enum msg_level) const
 
void set_level (level::level_enum log_level)
 
level::level_enum level () const
 

Additional Inherited Members

- Protected Attributes inherited from spdlog::sinks::sink
level_t level_ {level::trace}
 
std::unique_ptr< spdlog::formatterformatter_ {details::make_unique<spdlog::pattern_formatter>()}
 

Detailed Description

template<typename TargetStream, typename ConsoleMutex>
class spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >

Definition at line 24 of file stdout_sinks.h.

Member Typedef Documentation

template<typename TargetStream , typename ConsoleMutex >
using spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::mutex_t = typename ConsoleMutex::mutex_t

Definition at line 27 of file stdout_sinks.h.

Constructor & Destructor Documentation

template<typename TargetStream , typename ConsoleMutex >
spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::stdout_sink ( )
inline

Definition at line 28 of file stdout_sinks.h.

template<typename TargetStream , typename ConsoleMutex >
spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::~stdout_sink ( )
overridedefault
template<typename TargetStream , typename ConsoleMutex >
spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::stdout_sink ( const stdout_sink< TargetStream, ConsoleMutex > &  other)
delete

Member Function Documentation

template<typename TargetStream , typename ConsoleMutex >
void spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::flush ( )
inlineoverridevirtual

Implements spdlog::sinks::sink.

Definition at line 47 of file stdout_sinks.h.

template<typename TargetStream , typename ConsoleMutex >
void spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::log ( const details::log_msg msg)
inlineoverridevirtual

Implements spdlog::sinks::sink.

Definition at line 38 of file stdout_sinks.h.

template<typename TargetStream , typename ConsoleMutex >
stdout_sink& spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::operator= ( const stdout_sink< TargetStream, ConsoleMutex > &  other)
delete
template<typename TargetStream , typename ConsoleMutex >
void spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::set_formatter ( std::unique_ptr< spdlog::formatter sink_formatter)
inlineoverridevirtual

Implements spdlog::sinks::sink.

Definition at line 59 of file stdout_sinks.h.

template<typename TargetStream , typename ConsoleMutex >
void spdlog::sinks::stdout_sink< TargetStream, ConsoleMutex >::set_pattern ( const std::string &  pattern)
inlineoverridevirtual

Implements spdlog::sinks::sink.

Definition at line 53 of file stdout_sinks.h.


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