summaryrefslogtreecommitdiffstats
path: root/src/common/logging/filter.h
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2018-07-14 20:47:14 +0200
committerJames Rowe <jroweboy@gmail.com>2018-07-15 21:02:09 +0200
commit497b81558e2543f3b42e4267d8ea9acc40bdf03b (patch)
tree47654b29d6ddd302315de8ff5e0593ca8de9ef77 /src/common/logging/filter.h
parentLogging: Don't lock the queue for the duration of the write (diff)
downloadyuzu-497b81558e2543f3b42e4267d8ea9acc40bdf03b.tar
yuzu-497b81558e2543f3b42e4267d8ea9acc40bdf03b.tar.gz
yuzu-497b81558e2543f3b42e4267d8ea9acc40bdf03b.tar.bz2
yuzu-497b81558e2543f3b42e4267d8ea9acc40bdf03b.tar.lz
yuzu-497b81558e2543f3b42e4267d8ea9acc40bdf03b.tar.xz
yuzu-497b81558e2543f3b42e4267d8ea9acc40bdf03b.tar.zst
yuzu-497b81558e2543f3b42e4267d8ea9acc40bdf03b.zip
Diffstat (limited to '')
-rw-r--r--src/common/logging/filter.h3
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;
};