diff --git a/src/utils/monero_utils.cpp b/src/utils/monero_utils.cpp index 7ec26e2..1d8b361 100644 --- a/src/utils/monero_utils.cpp +++ b/src/utils/monero_utils.cpp @@ -62,6 +62,14 @@ using namespace cryptonote; using namespace monero_utils; +void monero_utils::set_log_level(int level) { + mlog_set_log_level(level); +} + +void monero_utils::configure_logging(const std::string& path, bool console) { + mlog_configure(path, console); +} + // --------------------------- VALIDATION UTILS ------------------------------- monero_integrated_address monero_utils::get_integrated_address(monero_network_type network_type, const std::string& standard_address, const std::string& payment_id) { diff --git a/src/utils/monero_utils.h b/src/utils/monero_utils.h index 3618150..1940841 100644 --- a/src/utils/monero_utils.h +++ b/src/utils/monero_utils.h @@ -73,6 +73,8 @@ namespace monero_utils // -------------------------------- UTILS ----------------------------------- + void set_log_level(int level); + void configure_logging(const std::string& path, bool console); monero_integrated_address get_integrated_address(monero_network_type network_type, const std::string& standard_address, const std::string& payment_id); bool is_valid_address(const std::string& address, monero_network_type network_type); bool is_valid_private_view_key(const std::string& private_view_key);