11 #include "common/logger.h"
20 boost::property_tree::read_json(std::string{config_path}, json_tree);
22 }
catch (boost::property_tree::json_parser_error &error) {
25 __FILE__, __LINE__, __func__,
26 [&error](std::stringstream &msg) { msg <<
"Reading of config failed with error: " << error.message(); });
static auto GetLibBoostLogger() noexcept -> LibBoostLogger &
Class type to contains a value (of type ValueType), or an error (of type ErrorType)
void EmplaceValue(Args &&...args) noexcept
Put a new value into this instance, constructed in-place from the given arguments.
core_type::Result< void, ParsingErrorCode > Read(std::string_view config_path, boost_tree &json_tree)
Parser to get the configuration from json file.
boost::property_tree::ptree boost_tree
Type alias for boost property tree.