22#include <toml++/toml.h>
47 "use_color in num_collect.logging.sinks element with type "
Class of tables of log sinks.
toml_console_log_sink_factory(const ::toml::table &table)
Constructor.
bool use_color_
Whether to use color.
~toml_console_log_sink_factory() noexcept override=default
Destructor.
auto create(log_sink_factory_table &sinks) -> sinks::log_sink override
Create log sink.
Declaration of functions to create console log sinks.
Definition of log_sink class.
Definition of log_sink_factory_base class.
Definition of log_sink_factory_table class.
Namespace of logging configuration in TOML files.
void read_optional_value_to(T &output, const ::toml::table &table, std::string_view path, std::string_view config_name, std::string_view type_name)
Read a value to a variable.
NUM_COLLECT_EXPORT auto create_non_colored_console_sink() -> log_sink
Create a log sink to write to console without color.
NUM_COLLECT_EXPORT auto create_colored_console_sink() -> log_sink
Create a log sink to write to console with color.
Definition of helper functions for parsing TOML files.