cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Definition of parse_toml functions for logging. More...
#include <cstddef>
#include <string>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <toml++/toml.h>
#include "msgpack_rpc/config/logging_config.h"
#include "msgpack_rpc/config/toml/parse_toml_common.h"
#include "msgpack_rpc/logging/log_level.h"
Go to the source code of this file.
Namespaces | |
namespace | msgpack_rpc |
Namespace of cpp-msgpack-rpc library. | |
namespace | msgpack_rpc::config |
Namespace of configurations. |
Functions | |
logging::LogLevel | msgpack_rpc::config::toml::impl::parse_log_level (std::string_view str, const ::toml::source_region &source, std::string_view config_key) |
Parse a log level from a string. | |
void | msgpack_rpc::config::toml::impl::parse_toml (const ::toml::table &table, LoggingConfig &config) |
Parse a configuration of logging from TOML. | |
void | msgpack_rpc::config::toml::impl::parse_toml (const ::toml::table &table, std::unordered_map< std::string, LoggingConfig > &configs) |
Parse configurations of logging from TOML. |
Definition of parse_toml functions for logging.
Definition in file parse_toml_logging.h.
|
inlinenodiscard |
Parse a log level from a string.
[in] | str | String. |
[in] | source | Location in TOML. (For errors.) |
[in] | config_key | Key of the configuration. |
Definition at line 44 of file parse_toml_logging.h.
|
inline |
Parse a configuration of logging from TOML.
[in] | table | Table in TOML. |
[out] | config | Configuration. |
Definition at line 73 of file parse_toml_logging.h.
|
inline |
Parse configurations of logging from TOML.
[in] | table | Table in TOML. |
[out] | configs | Configurations. |
Definition at line 100 of file parse_toml_logging.h.