numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of log sinks to write logs to multiple log sinks. More...
#include <num_collect/logging/sinks/combined_log_sink.h>
Public Member Functions | |
combined_log_sink (combined_log_sink &&)=delete | |
combined_log_sink (const combined_log_sink &)=delete | |
combined_log_sink (std::vector< std::pair< log_sink, log_level > > sinks) | |
Constructor. | |
~combined_log_sink ()=default | |
Destructor. | |
auto | operator= (combined_log_sink &&) -> combined_log_sink &=delete |
auto | operator= (const combined_log_sink &) -> combined_log_sink &=delete |
void | write (time_stamp time, std::string_view tag, log_level level, util::source_info_view source, std::string_view body) noexcept |
Write a log. | |
Private Attributes | |
std::vector< std::pair< log_sink, log_level > > | sinks_ |
Log sinks with log levels. | |
Class of log sinks to write logs to multiple log sinks.
Definition at line 38 of file combined_log_sink.h.
|
inlineexplicit |
Constructor.
[in] | sinks | Log sinks with log levels. |
Definition at line 45 of file combined_log_sink.h.
|
inlinenoexcept |
Write a log.
[in] | time | Time. |
[in] | tag | Tag. |
[in] | level | Log level. |
[in] | source | Information of the source code. |
[in] | body | Log body. |
Definition at line 70 of file combined_log_sink.h.
|
private |
Log sinks with log levels.
Definition at line 81 of file combined_log_sink.h.