refactor: Replace all old instances of Config with New Config (#1627)

Fixes #1184 
Previous PR's found [here](https://github.com/XRPLF/clio/pull/1593) and
[here](https://github.com/XRPLF/clio/pull/1544)
This commit is contained in:
Peter Chen
2024-12-16 15:33:32 -08:00
committed by GitHub
parent b53cfd0ec1
commit 3c4903a339
103 changed files with 1624 additions and 898 deletions

View File

@@ -52,7 +52,9 @@
namespace util {
class Config;
namespace config {
class ClioConfigDefinition;
} // namespace config
/**
* @brief Skips evaluation of expensive argument lists if the given logger is disabled for the required severity level.
@@ -164,16 +166,6 @@ class Logger final {
private:
[[nodiscard]] static std::string
pretty_path(SourceLocationType const& loc, size_t max_depth = 3);
/**
* @brief Custom JSON parser for @ref Severity.
*
* @param value The JSON string to parse
* @return The parsed severity
* @throws std::runtime_error Thrown if severity is not in the right format
*/
friend Severity
tag_invoke(boost::json::value_to_tag<Severity>, boost::json::value const& value);
};
public:
@@ -285,7 +277,7 @@ public:
* @param config The configuration to use
*/
static void
init(Config const& config);
init(config::ClioConfigDefinition const& config);
/**
* @brief Globally accesible General logger at Severity::TRC severity