Livox SDK API  V2.2.0
spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex > Class Template Reference

#include <wincolor_sink.h>

Inheritance diagram for spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >:
spdlog::sinks::sink

Public Member Functions

 wincolor_sink ()
 
 ~wincolor_sink () override
 
 wincolor_sink (const wincolor_sink &other)=delete
 
wincolor_sinkoperator= (const wincolor_sink &other)=delete
 
void set_color (level::level_enum level, WORD color)
 
void log (const details::log_msg &msg) finaloverride
 
void flush () finaloverride
 
void set_pattern (const std::string &pattern) overridefinal
 
void set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) overridefinal
 
- 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
 

Public Attributes

const WORD BOLD = FOREGROUND_INTENSITY
 
const WORD RED = FOREGROUND_RED
 
const WORD GREEN = FOREGROUND_GREEN
 
const WORD CYAN = FOREGROUND_GREEN | FOREGROUND_BLUE
 
const WORD WHITE = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE
 
const WORD YELLOW = FOREGROUND_RED | FOREGROUND_GREEN
 

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 OutHandle, typename ConsoleMutex>
class spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >

Definition at line 30 of file wincolor_sink.h.

Constructor & Destructor Documentation

template<typename OutHandle , typename ConsoleMutex >
spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::wincolor_sink ( )
inline

Definition at line 40 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::~wincolor_sink ( )
inlineoverride

Definition at line 53 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::wincolor_sink ( const wincolor_sink< OutHandle, ConsoleMutex > &  other)
delete

Member Function Documentation

template<typename OutHandle , typename ConsoleMutex >
void spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::flush ( )
inlinefinaloverridevirtual

Implements spdlog::sinks::sink.

Definition at line 92 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
void spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::log ( const details::log_msg msg)
inlinefinaloverridevirtual

Implements spdlog::sinks::sink.

Definition at line 68 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
wincolor_sink& spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::operator= ( const wincolor_sink< OutHandle, ConsoleMutex > &  other)
delete
template<typename OutHandle , typename ConsoleMutex >
void spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::set_color ( level::level_enum  level,
WORD  color 
)
inline

Definition at line 62 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
void spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::set_formatter ( std::unique_ptr< spdlog::formatter sink_formatter)
inlinefinaloverridevirtual

Implements spdlog::sinks::sink.

Definition at line 103 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
void spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::set_pattern ( const std::string &  pattern)
inlinefinaloverridevirtual

Implements spdlog::sinks::sink.

Definition at line 97 of file wincolor_sink.h.

Member Data Documentation

template<typename OutHandle , typename ConsoleMutex >
const WORD spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::BOLD = FOREGROUND_INTENSITY

Definition at line 33 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
const WORD spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::CYAN = FOREGROUND_GREEN | FOREGROUND_BLUE

Definition at line 36 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
const WORD spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::GREEN = FOREGROUND_GREEN

Definition at line 35 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
const WORD spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::RED = FOREGROUND_RED

Definition at line 34 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
const WORD spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::WHITE = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE

Definition at line 37 of file wincolor_sink.h.

template<typename OutHandle , typename ConsoleMutex >
const WORD spdlog::sinks::wincolor_sink< OutHandle, ConsoleMutex >::YELLOW = FOREGROUND_RED | FOREGROUND_GREEN

Definition at line 38 of file wincolor_sink.h.


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