Agora
1.2.0
Agora project
|
Go to the documentation of this file.
23 template<
typename ConsoleMutex>
36 void flush()
final override;
37 void set_pattern(
const std::string &pattern)
override final;
38 void set_formatter(std::unique_ptr<spdlog::formatter> sink_formatter)
override final;
42 using mutex_t =
typename ConsoleMutex::mutex_t;
47 std::array<std::uint16_t, level::n_levels>
colors_;
61 template<
typename ConsoleMutex>
68 template<
typename ConsoleMutex>
83 #ifdef SPDLOG_HEADER_ONLY
color
Definition: color.h:23
wincolor_stderr_sink(color_mode mode=color_mode::automatic)
Definition: wincolor_sink-inl.h:171
std::unique_ptr< spdlog::formatter > formatter_
Definition: wincolor_sink.h:46
wincolor_stdout_sink(color_mode mode=color_mode::automatic)
Definition: wincolor_sink-inl.h:165
Definition: wincolor_sink.h:24
void set_color(level::level_enum level, std::uint16_t color)
Definition: wincolor_sink-inl.h:45
level::level_enum level() const
Definition: sink-inl.h:22
string mode
Definition: mm_gui.py:105
std::uint16_t set_foreground_color_(std::uint16_t attribs)
Definition: wincolor_sink-inl.h:126
level_enum
Definition: common.h:211
wincolor_sink & operator=(const wincolor_sink &other)=delete
Definition: wincolor_sink.h:62
bool should_do_colors_
Definition: wincolor_sink.h:45
void set_color_mode(color_mode mode)
Definition: wincolor_sink-inl.h:102
void set_color_mode_impl(color_mode mode)
Definition: wincolor_sink-inl.h:109
void flush() final override
Definition: wincolor_sink-inl.h:82
void * out_handle_
Definition: wincolor_sink.h:43
void write_to_file_(const memory_buf_t &formatted)
Definition: wincolor_sink-inl.h:155
wincolor_sink(void *out_handle, color_mode mode)
Definition: wincolor_sink-inl.h:19
end start
Definition: inspect_agora_results.m:95
mutex_t & mutex_
Definition: wincolor_sink.h:44
void set_pattern(const std::string &pattern) override final
Definition: wincolor_sink-inl.h:88
typename ConsoleMutex::mutex_t mutex_t
Definition: wincolor_sink.h:42
void set_formatter(std::unique_ptr< spdlog::formatter > sink_formatter) override final
Definition: wincolor_sink-inl.h:95
std::array< std::uint16_t, level::n_levels > colors_
Definition: wincolor_sink.h:47
Definition: wincolor_sink.h:69
void log(const details::log_msg &msg) final override
Definition: wincolor_sink-inl.h:52
~wincolor_sink() override
Definition: wincolor_sink-inl.h:38
void print_range_(const memory_buf_t &formatted, size_t start, size_t end)
Definition: wincolor_sink-inl.h:144
color_mode
Definition: common.h:256