support set_log_level() and configure_logging()

This commit is contained in:
woodser
2023-06-21 09:23:14 -04:00
parent 15062429ac
commit ad7be65b3b
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -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) {
+2
View File
@@ -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);