aboutsummaryrefslogtreecommitdiff
path: root/external/easylogging++/easylogging++.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-02 23:28:59 +0400
committerRiccardo Spagni <ric@spagni.net>2017-10-02 23:28:59 +0400
commit3bab2676ec05ebd1f3d031c4fcdf7512412ccf05 (patch)
tree95a484e2981461b10f4371d4b45573890804c04f /external/easylogging++/easylogging++.h
parentMerge pull request #2506 (diff)
parentLog categories can now be added to and removed from (diff)
downloadmonero-3bab2676ec05ebd1f3d031c4fcdf7512412ccf05.tar.xz
Merge pull request #2512
792ba4f0 Log categories can now be added to and removed from (moneromooo-monero) 48f92eb6 easylogging++: add categories getter (moneromooo-monero) f35afe62 epee: factor log level/categories setting (moneromooo-monero)
Diffstat (limited to 'external/easylogging++/easylogging++.h')
-rw-r--r--external/easylogging++/easylogging++.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/external/easylogging++/easylogging++.h b/external/easylogging++/easylogging++.h
index 8f592899e..c55cce755 100644
--- a/external/easylogging++/easylogging++.h
+++ b/external/easylogging++/easylogging++.h
@@ -2488,6 +2488,8 @@ class VRegistry : base::NoCopy, public base::threading::ThreadSafe {
void setCategories(const char* categories, bool clear = true);
+ std::string getCategories();
+
void setModules(const char* modules);
bool allowed(Level level, const char* category);
@@ -2518,6 +2520,7 @@ class VRegistry : base::NoCopy, public base::threading::ThreadSafe {
base::type::EnumType* m_pFlags;
std::map<std::string, base::type::VerboseLevel> m_modules;
std::deque<std::pair<std::string, Level>> m_categories;
+ std::string m_categoriesString;
std::string m_filenameCommonPrefix;
};
} // namespace base
@@ -3953,6 +3956,8 @@ class Loggers : base::StaticClass {
static void setVModules(const char* modules);
/// @brief Sets categories as specified (on the fly)
static void setCategories(const char* categories, bool clear = true);
+ /// @brief Gets current categories
+ static std::string getCategories();
/// @brief Clears vmodules
static void clearVModules(void);
/// @brief Clears categories