From 87c658f83b7160385806589a8750bbf005fb4d26 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 16 Jan 2017 21:11:03 +0000 Subject: wallet2_api: add API to set log categories --- src/wallet/api/wallet_manager.cpp | 5 +++++ src/wallet/wallet2_api.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index 12bce0285..904338a72 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -448,6 +448,11 @@ void WalletManagerFactory::setLogLevel(int level) mlog_set_log_level(level); } +void WalletManagerFactory::setLogCategories(const std::string &categories) +{ + mlog_set_categories(categories.c_str()); +} + } diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 5a13205c5..78caddc0b 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -708,6 +708,7 @@ struct WalletManagerFactory static WalletManager * getWalletManager(); static void setLogLevel(int level); + static void setLogCategories(const std::string &categories); }; -- cgit v1.2.3