wallet2_api: add API to set log categories
This commit is contained in:
parent
71ac698b78
commit
87c658f83b
2 changed files with 6 additions and 0 deletions
|
@ -448,6 +448,11 @@ void WalletManagerFactory::setLogLevel(int level)
|
||||||
mlog_set_log_level(level);
|
mlog_set_log_level(level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WalletManagerFactory::setLogCategories(const std::string &categories)
|
||||||
|
{
|
||||||
|
mlog_set_categories(categories.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -708,6 +708,7 @@ struct WalletManagerFactory
|
||||||
|
|
||||||
static WalletManager * getWalletManager();
|
static WalletManager * getWalletManager();
|
||||||
static void setLogLevel(int level);
|
static void setLogLevel(int level);
|
||||||
|
static void setLogCategories(const std::string &categories);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue