mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 22:27:46 +00:00
wallet2_api: add info/error/warning entry points
This commit is contained in:
parent
421ab3119c
commit
e0cda74ace
2 changed files with 18 additions and 3 deletions
|
@ -295,8 +295,20 @@ void Wallet::init(const char *argv0, const char *default_log_base_name) {
|
||||||
mlog_configure(mlog_get_default_log_path(default_log_base_name), true);
|
mlog_configure(mlog_get_default_log_path(default_log_base_name), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Wallet::debug(const std::string &str) {
|
void Wallet::debug(const std::string &category, const std::string &str) {
|
||||||
MDEBUG(str);
|
MCDEBUG(category.empty() ? MONERO_DEFAULT_LOG_CATEGORY : category.c_str(), str);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Wallet::info(const std::string &category, const std::string &str) {
|
||||||
|
MCINFO(category.empty() ? MONERO_DEFAULT_LOG_CATEGORY : category.c_str(), str);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Wallet::warning(const std::string &category, const std::string &str) {
|
||||||
|
MCWARNING(category.empty() ? MONERO_DEFAULT_LOG_CATEGORY : category.c_str(), str);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Wallet::error(const std::string &category, const std::string &str) {
|
||||||
|
MCERROR(category.empty() ? MONERO_DEFAULT_LOG_CATEGORY : category.c_str(), str);
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////// WalletImpl implementation ////////////////////////
|
///////////////////////// WalletImpl implementation ////////////////////////
|
||||||
|
|
|
@ -535,7 +535,10 @@ struct Wallet
|
||||||
static uint64_t maximumAllowedAmount();
|
static uint64_t maximumAllowedAmount();
|
||||||
// Easylogger wrapper
|
// Easylogger wrapper
|
||||||
static void init(const char *argv0, const char *default_log_base_name);
|
static void init(const char *argv0, const char *default_log_base_name);
|
||||||
static void debug(const std::string &str);
|
static void debug(const std::string &category, const std::string &str);
|
||||||
|
static void info(const std::string &category, const std::string &str);
|
||||||
|
static void warning(const std::string &category, const std::string &str);
|
||||||
|
static void error(const std::string &category, const std::string &str);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief StartRefresh - Start/resume refresh thread (refresh every 10 seconds)
|
* @brief StartRefresh - Start/resume refresh thread (refresh every 10 seconds)
|
||||||
|
|
Loading…
Reference in a new issue