Holds the configuration for one logging backend (sink) and takes care of default values.
More...
#include <LogConfiguration.hpp>
|
| void | setOption (std::string key, std::string value) |
| | Sets on option, overwrites default values.
|
| void | setEnabled (bool enabled) |
| | Sets weather the sink is enabled or disabled.
|
|
| static bool | isValidOption (std::string key) |
| | Checks if an option is usable.
|
|
| static const std::string | default_type = "stream" |
| static const std::string | default_output = "stdout" |
| static const std::string | default_filter = "(%Severity% > debug) and not ((%Severity% = info) and (%Rank% != 0))" |
| static const std::string | default_formatter = "(%Rank%) %TimeStamp(format=\"%H:%M:%S\")% [%Module%]:%Line% in %Function%: %ColorizedSeverity%%Message%" |
Holds the configuration for one logging backend (sink) and takes care of default values.
Definition at line 9 of file LogConfiguration.hpp.
◆ isValidOption()
| bool precice::logging::BackendConfiguration::isValidOption |
( |
std::string | key | ) |
|
|
static |
◆ setEnabled()
| void precice::logging::BackendConfiguration::setEnabled |
( |
bool | enabled | ) |
|
◆ setOption()
| void precice::logging::BackendConfiguration::setOption |
( |
std::string | key, |
|
|
std::string | value ) |
◆ default_filter
| const std::string precice::logging::BackendConfiguration::default_filter = "(%Severity% > debug) and not ((%Severity% = info) and (%Rank% != 0))" |
|
static |
◆ default_formatter
| const std::string precice::logging::BackendConfiguration::default_formatter = "(%Rank%) %TimeStamp(format=\"%H:%M:%S\")% [%Module%]:%Line% in %Function%: %ColorizedSeverity%%Message%" |
|
static |
◆ default_output
| const std::string precice::logging::BackendConfiguration::default_output = "stdout" |
|
static |
◆ default_type
| const std::string precice::logging::BackendConfiguration::default_type = "stream" |
|
static |
◆ enabled
| bool precice::logging::BackendConfiguration::enabled = true |
◆ filter
| std::string precice::logging::BackendConfiguration::filter = default_filter |
◆ format
◆ output
| std::string precice::logging::BackendConfiguration::output = default_output |
◆ type
| std::string precice::logging::BackendConfiguration::type = default_type |
The documentation for this struct was generated from the following files: