Ark Server API (ASE) - Wiki
|
#include <wincolor_sink.h>
Public Member Functions | |
wincolor_sink (HANDLE std_handle) | |
virtual | ~wincolor_sink () |
wincolor_sink (const wincolor_sink &other)=delete | |
wincolor_sink & | operator= (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_sink & | operator= (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, WORD > | colors_ |
Additional Inherited Members | |
Protected Attributes inherited from spdlog::sinks::base_sink< Mutex > | |
Mutex | _mutex |
Definition at line 25 of file wincolor_sink.h.
|
inline |
Definition at line 35 of file wincolor_sink.h.
|
inlinevirtual |
Definition at line 46 of file wincolor_sink.h.
|
delete |
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 63 of file wincolor_sink.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 55 of file wincolor_sink.h.
|
delete |
|
inlineprotected |
Definition at line 69 of file wincolor_sink.h.
|
inlineprivate |
Definition at line 80 of file wincolor_sink.h.
const WORD spdlog::sinks::wincolor_sink< Mutex >::BOLD = FOREGROUND_INTENSITY |
Definition at line 28 of file wincolor_sink.h.
|
private |
Definition at line 77 of file wincolor_sink.h.
const WORD spdlog::sinks::wincolor_sink< Mutex >::CYAN = FOREGROUND_GREEN | FOREGROUND_BLUE |
Definition at line 30 of file wincolor_sink.h.
const WORD spdlog::sinks::wincolor_sink< Mutex >::GREEN = FOREGROUND_GREEN |
Definition at line 33 of file wincolor_sink.h.
|
private |
Definition at line 76 of file wincolor_sink.h.
const WORD spdlog::sinks::wincolor_sink< Mutex >::RED = FOREGROUND_RED |
Definition at line 29 of file wincolor_sink.h.
const WORD spdlog::sinks::wincolor_sink< Mutex >::WHITE = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE |
Definition at line 31 of file wincolor_sink.h.
const WORD spdlog::sinks::wincolor_sink< Mutex >::YELLOW = FOREGROUND_RED | FOREGROUND_GREEN |
Definition at line 32 of file wincolor_sink.h.