Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
spdlog::sinks::wincolor_sink< Mutex > Class Template Reference

#include <wincolor_sink.h>

+ Inheritance diagram for spdlog::sinks::wincolor_sink< Mutex >:
+ Collaboration diagram for spdlog::sinks::wincolor_sink< Mutex >:

Public Member Functions

 wincolor_sink (HANDLE std_handle)
 
virtual ~wincolor_sink ()
 
 wincolor_sink (const wincolor_sink &other)=delete
 
wincolor_sinkoperator= (const wincolor_sink &other)=delete
 
- Public Member Functions inherited from spdlog::sinks::base_sink< Mutex >
 base_sink ()
 
virtual ~base_sink ()=default
 
 base_sink (const base_sink &)=delete
 
base_sinkoperator= (const base_sink &)=delete
 
void log (const details::log_msg &msg) SPDLOG_FINAL override
 
void flush () SPDLOG_FINAL override
 
- Public Member Functions inherited from spdlog::sinks::sink
 sink ()
 
virtual ~sink ()
 
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 CYAN = FOREGROUND_GREEN | FOREGROUND_BLUE
 
const WORD WHITE = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE
 
const WORD YELLOW = FOREGROUND_RED | FOREGROUND_GREEN
 
const WORD GREEN = FOREGROUND_GREEN
 

Protected Member Functions

virtual void _sink_it (const details::log_msg &msg) override
 
virtual void _flush () override
 
void set_color (level::level_enum level, WORD color)
 

Private Member Functions

WORD set_console_attribs (WORD attribs)
 

Private Attributes

HANDLE out_handle_
 
std::map< level::level_enum, WORDcolors_
 

Additional Inherited Members

- Protected Attributes inherited from spdlog::sinks::base_sink< Mutex >
Mutex _mutex
 

Detailed Description

template<class Mutex>
class spdlog::sinks::wincolor_sink< Mutex >

Definition at line 25 of file wincolor_sink.h.

Constructor & Destructor Documentation

◆ wincolor_sink() [1/2]

template<class Mutex >
spdlog::sinks::wincolor_sink< Mutex >::wincolor_sink ( HANDLE std_handle)
inline

Definition at line 35 of file wincolor_sink.h.

◆ ~wincolor_sink()

template<class Mutex >
virtual spdlog::sinks::wincolor_sink< Mutex >::~wincolor_sink ( )
inlinevirtual

Definition at line 46 of file wincolor_sink.h.

◆ wincolor_sink() [2/2]

template<class Mutex >
spdlog::sinks::wincolor_sink< Mutex >::wincolor_sink ( const wincolor_sink< Mutex > & other)
delete

Member Function Documentation

◆ _flush()

template<class Mutex >
virtual void spdlog::sinks::wincolor_sink< Mutex >::_flush ( )
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 63 of file wincolor_sink.h.

◆ _sink_it()

template<class Mutex >
virtual void spdlog::sinks::wincolor_sink< Mutex >::_sink_it ( const details::log_msg & msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 55 of file wincolor_sink.h.

◆ operator=()

template<class Mutex >
wincolor_sink & spdlog::sinks::wincolor_sink< Mutex >::operator= ( const wincolor_sink< Mutex > & other)
delete

◆ set_color()

template<class Mutex >
void spdlog::sinks::wincolor_sink< Mutex >::set_color ( level::level_enum level,
WORD color )
inlineprotected

Definition at line 69 of file wincolor_sink.h.

◆ set_console_attribs()

template<class Mutex >
WORD spdlog::sinks::wincolor_sink< Mutex >::set_console_attribs ( WORD attribs)
inlineprivate

Definition at line 80 of file wincolor_sink.h.

Member Data Documentation

◆ BOLD

Definition at line 28 of file wincolor_sink.h.

◆ colors_

template<class Mutex >
std::map<level::level_enum, WORD> spdlog::sinks::wincolor_sink< Mutex >::colors_
private

Definition at line 77 of file wincolor_sink.h.

◆ CYAN

Definition at line 30 of file wincolor_sink.h.

◆ GREEN

template<class Mutex >
const WORD spdlog::sinks::wincolor_sink< Mutex >::GREEN = FOREGROUND_GREEN

Definition at line 33 of file wincolor_sink.h.

◆ out_handle_

template<class Mutex >
HANDLE spdlog::sinks::wincolor_sink< Mutex >::out_handle_
private

Definition at line 76 of file wincolor_sink.h.

◆ RED

template<class Mutex >
const WORD spdlog::sinks::wincolor_sink< Mutex >::RED = FOREGROUND_RED

Definition at line 29 of file wincolor_sink.h.

◆ WHITE

Definition at line 31 of file wincolor_sink.h.

◆ YELLOW

Definition at line 32 of file wincolor_sink.h.


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