|
|
@ -306,8 +306,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 ////////////////////////
|
|
|
|