mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-05 04:15:51 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user