Agora
1.2.0
Agora project
|
#include <wincolor_sink.h>
Public Member Functions | |
wincolor_sink (void *out_handle, color_mode mode) | |
~wincolor_sink () override | |
wincolor_sink (const wincolor_sink &other)=delete | |
wincolor_sink & | operator= (const wincolor_sink &other)=delete |
void | set_color (level::level_enum level, std::uint16_t color) |
void | log (const details::log_msg &msg) final override |
void | flush () final override |
void | set_pattern (const std::string &pattern) override final |
void | set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) override final |
void | set_color_mode (color_mode mode) |
Public Member Functions inherited from spdlog::sinks::sink | |
virtual | ~sink ()=default |
void | set_level (level::level_enum log_level) |
level::level_enum | level () const |
bool | should_log (level::level_enum msg_level) const |
Protected Types | |
using | mutex_t = typename ConsoleMutex::mutex_t |
Protected Member Functions | |
std::uint16_t | set_foreground_color_ (std::uint16_t attribs) |
void | print_range_ (const memory_buf_t &formatted, size_t start, size_t end) |
void | write_to_file_ (const memory_buf_t &formatted) |
void | set_color_mode_impl (color_mode mode) |
Protected Attributes | |
void * | out_handle_ |
mutex_t & | mutex_ |
bool | should_do_colors_ |
std::unique_ptr< spdlog::formatter > | formatter_ |
std::array< std::uint16_t, level::n_levels > | colors_ |
Protected Attributes inherited from spdlog::sinks::sink | |
level_t | level_ {level::trace} |
|
protected |
SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::wincolor_sink | ( | void * | out_handle, |
color_mode | mode | ||
) |
|
override |
|
delete |
|
finaloverridevirtual |
Implements spdlog::sinks::sink.
|
finaloverridevirtual |
|
delete |
|
protected |
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::set_color | ( | level::level_enum | level, |
std::uint16_t | color | ||
) |
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::set_color_mode | ( | color_mode | mode | ) |
|
protected |
|
protected |
|
finaloverridevirtual |
Implements spdlog::sinks::sink.
|
finaloverridevirtual |
Implements spdlog::sinks::sink.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |