diff options
| author | bunnei <bunneidev@gmail.com> | 2018-07-15 12:58:52 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-15 12:58:52 -0700 |
| commit | 04b9cde4f5a59e55ae7daac20f79121f8c7e0386 (patch) | |
| tree | 64528e1b2ced65cf0f9a1a22ffaedabb069fa13d /src/common/logging/filter.h | |
| parent | 98762e9601abf64d37774a7ade6eb0cf640b6852 (diff) | |
| parent | 497b81558e2543f3b42e4267d8ea9acc40bdf03b (diff) | |
Merge pull request #664 from jroweboy/logging-stuff
Minor logging improvements
Diffstat (limited to 'src/common/logging/filter.h')
| -rw-r--r-- | src/common/logging/filter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/logging/filter.h b/src/common/logging/filter.h index ccca289bd..2a4f7c845 100644 --- a/src/common/logging/filter.h +++ b/src/common/logging/filter.h @@ -47,6 +47,9 @@ public: /// Matches class/level combination against the filter, returning true if it passed. bool CheckMessage(Class log_class, Level level) const; + /// Returns true if any logging classes are set to debug + bool IsDebug() const; + private: std::array<Level, (size_t)Class::Count> class_levels; }; |
