Namespace of log sinks.
More...
|
namespace | impl |
| Namespace of internal implementations.
|
|
◆ create_colored_console_sink()
NUM_COLLECT_EXPORT auto num_collect::logging::sinks::create_colored_console_sink |
( |
| ) |
-> log_sink |
|
nodiscard |
Create a log sink to write to console with color.
- Returns
- Log sink.
◆ create_combined_log_sink()
auto num_collect::logging::sinks::create_combined_log_sink |
( |
std::vector< std::pair< log_sink, log_level > > | sinks | ) |
-> log_sink |
|
inlinenodiscard |
Create a log sink to write logs to multiple log sinks.
- Parameters
-
[in] | sinks | Log sinks with log levels. |
- Returns
- Log sink to write logs to all of the given log sinks.
Definition at line 90 of file combined_log_sink.h.
◆ create_log_sink()
template<typename T , typename... Args>
auto num_collect::logging::sinks::create_log_sink |
( |
Args &&... | args | ) |
-> log_sink |
|
nodiscard |
Create a log sink.
- Template Parameters
-
T | Class with write function which has the same signature as log_sink class. |
Args | Types of arguments. |
- Parameters
-
- Returns
- Log sink.
Definition at line 146 of file log_sink.h.
◆ create_non_colored_console_sink()
NUM_COLLECT_EXPORT auto num_collect::logging::sinks::create_non_colored_console_sink |
( |
| ) |
-> log_sink |
|
nodiscard |
Create a log sink to write to console without color.
- Returns
- Log sink.
◆ create_single_file_sink()
NUM_COLLECT_EXPORT auto num_collect::logging::sinks::create_single_file_sink |
( |
std::string_view | filepath | ) |
-> log_sink |
|
nodiscard |
Create a log sink to write to a single file.
- Parameters
-
- Returns
- Log sink.
◆ get_default_log_sink()
NUM_COLLECT_EXPORT auto num_collect::logging::sinks::get_default_log_sink |
( |
| ) |
-> log_sink |
|
nodiscard |
Get the default log sink.
- Returns
- Log sink.