Agora
1.2.0
Agora project
|
Go to the documentation of this file.
24 template<
typename ConsoleMutex>
28 using mutex_t =
typename ConsoleMutex::mutex_t;
43 void flush()
override;
45 void set_formatter(std::unique_ptr<spdlog::formatter> sink_formatter)
override;
87 std::array<std::string, level::n_levels>
colors_;
93 template<
typename ConsoleMutex>
100 template<
typename ConsoleMutex>
116 #ifdef SPDLOG_HEADER_ONLY
color
Definition: color.h:23
const string_view_t white
Definition: ansicolor_sink.h:65
const string_view_t dark
Definition: ansicolor_sink.h:50
std::array< std::string, level::n_levels > colors_
Definition: ansicolor_sink.h:87
const string_view_t clear_line
Definition: ansicolor_sink.h:55
const string_view_t cyan
Definition: ansicolor_sink.h:64
void set_formatter(std::unique_ptr< spdlog::formatter > sink_formatter) override
Definition: ansicolor_sink-inl.h:83
const string_view_t black
Definition: ansicolor_sink.h:58
string mode
Definition: mm_gui.py:105
void flush() override
Definition: ansicolor_sink-inl.h:69
level_enum
Definition: common.h:211
static std::string to_string_(const string_view_t &sv)
Definition: ansicolor_sink-inl.h:127
const string_view_t red
Definition: ansicolor_sink.h:59
bool should_color()
Definition: ansicolor_sink-inl.h:90
FILE * target_file_
Definition: ansicolor_sink.h:83
void set_pattern(const std::string &pattern) final
Definition: ansicolor_sink-inl.h:76
void print_range_(const memory_buf_t &formatted, size_t start, size_t end)
Definition: ansicolor_sink-inl.h:121
const string_view_t on_yellow
Definition: ansicolor_sink.h:71
const string_view_t on_red
Definition: ansicolor_sink.h:69
const string_view_t bold_on_red
Definition: ansicolor_sink.h:80
const string_view_t yellow_bold
Bold colors.
Definition: ansicolor_sink.h:78
const string_view_t on_cyan
Definition: ansicolor_sink.h:74
void print_ccode_(const string_view_t &color_code)
Definition: ansicolor_sink-inl.h:115
end start
Definition: inspect_agora_results.m:95
const string_view_t yellow
Definition: ansicolor_sink.h:61
const string_view_t magenta
Definition: ansicolor_sink.h:63
const string_view_t on_white
Definition: ansicolor_sink.h:75
const string_view_t reset
Definition: ansicolor_sink.h:48
const string_view_t on_black
Background colors.
Definition: ansicolor_sink.h:68
const string_view_t on_blue
Definition: ansicolor_sink.h:72
const string_view_t underline
Definition: ansicolor_sink.h:51
const string_view_t reverse
Definition: ansicolor_sink.h:53
ansicolor_stderr_sink(color_mode mode=color_mode::automatic)
Definition: ansicolor_sink-inl.h:140
const string_view_t red_bold
Definition: ansicolor_sink.h:79
void set_color_mode(color_mode mode)
Definition: ansicolor_sink-inl.h:96
bool should_do_colors_
Definition: ansicolor_sink.h:85
const string_view_t on_magenta
Definition: ansicolor_sink.h:73
void set_color(level::level_enum color_level, string_view_t color)
Definition: ansicolor_sink-inl.h:34
ansicolor_sink & operator=(const ansicolor_sink &other)=delete
const string_view_t blue
Definition: ansicolor_sink.h:62
Definition: ansicolor_sink.h:101
ansicolor_sink(FILE *target_file, color_mode mode)
Definition: ansicolor_sink-inl.h:17
Definition: ansicolor_sink.h:94
std::unique_ptr< spdlog::formatter > formatter_
Definition: ansicolor_sink.h:86
const string_view_t concealed
Definition: ansicolor_sink.h:54
const string_view_t blink
Definition: ansicolor_sink.h:52
typename ConsoleMutex::mutex_t mutex_t
Definition: ansicolor_sink.h:28
const string_view_t on_green
Definition: ansicolor_sink.h:70
Definition: ansicolor_sink.h:25
const string_view_t green
Definition: ansicolor_sink.h:60
void log(const details::log_msg &msg) override
Definition: ansicolor_sink-inl.h:41
~ansicolor_sink() override=default
const string_view_t bold
Definition: ansicolor_sink.h:49
mutex_t & mutex_
Definition: ansicolor_sink.h:84
color_mode
Definition: common.h:256
ansicolor_stdout_sink(color_mode mode=color_mode::automatic)
Definition: ansicolor_sink-inl.h:134