49 [[nodiscard]]
auto sink() const noexcept -> const sinks::log_sink& {
60 sink_ = std::move(val);
152 "iteration_output_period must be a positive integer.");
176 "iteration_label_period must be a positive integer.");
Class of exception on invalid arguments.
Class to hold configurations for log tags.
index_type iteration_label_period_
Period to write labels of iteration logs.
auto iteration_output_period() const noexcept -> index_type
Get the period to write iteration logs.
auto sink(sinks::log_sink val) -> log_tag_config &
Set the log sink.
auto iteration_label_period(index_type val) -> log_tag_config &
Set the period to write labels of iteration logs.
log_tag_config()=default
Constructor.
auto sink() const noexcept -> const sinks::log_sink &
Get the log sink.
auto output_log_level(log_level val) -> log_tag_config &
Set the minimum log level to output.
auto iteration_label_period() const noexcept -> index_type
Get the period to write labels of iteration logs.
auto output_log_level_in_child_iterations() const noexcept -> log_level
Get the minimum log level to output in child iterations.
static constexpr index_type default_iteration_label_period
Default period to write labels of iteration logs.
auto iteration_output_period(index_type val) -> log_tag_config &
Set the period to write iteration logs.
index_type iteration_output_period_
Period to write iteration logs.
auto output_log_level_in_child_iterations(log_level val) -> log_tag_config &
Set the minimum log level to output in child iterations.
log_level output_log_level_in_child_iterations_
Minimum log level to output in child iterations.
sinks::log_sink sink_
Log sink.
auto output_log_level() const noexcept -> log_level
Get the minimum log level to output.
static constexpr index_type default_iteration_output_period
Default period to write iteration logs.
log_level output_log_level_
Minimum log level to output.
Declaration of the function to get the default log sink.
Definition of exceptions.
Definition of index_type type.
Definition of log_level enumeration.
Definition of log_sink class.
std::ptrdiff_t index_type
Type of indices in this library.
NUM_COLLECT_EXPORT auto get_default_log_sink() -> log_sink
Get the default log sink.
log_level
Enumeration of log levels.
@ off
Turn off output. (Only for output log level).