summaryrefslogtreecommitdiffstats
path: root/src/common/logging/filter.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-20 21:42:42 +0200
committerLioncash <mathew1800@gmail.com>2018-07-20 21:58:46 +0200
commitf63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58 (patch)
treee54a887d80b0e00520930e32bcea11a9bf420d43 /src/common/logging/filter.h
parentlogging/backend: Add missing standard includes (diff)
downloadyuzu-f63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58.tar
yuzu-f63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58.tar.gz
yuzu-f63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58.tar.bz2
yuzu-f63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58.tar.lz
yuzu-f63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58.tar.xz
yuzu-f63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58.tar.zst
yuzu-f63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58.zip
Diffstat (limited to '')
-rw-r--r--src/common/logging/filter.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/logging/filter.h b/src/common/logging/filter.h
index 2a4f7c845..d5ffc5a58 100644
--- a/src/common/logging/filter.h
+++ b/src/common/logging/filter.h
@@ -6,7 +6,7 @@
#include <array>
#include <cstddef>
-#include <string>
+#include <string_view>
#include "common/logging/log.h"
namespace Log {
@@ -40,9 +40,7 @@ public:
* - `Service:Info` -- Sets the level of Service to Info.
* - `Service.FS:Trace` -- Sets the level of the Service.FS class to Trace.
*/
- void ParseFilterString(const std::string& filter_str);
- bool ParseFilterRule(const std::string::const_iterator start,
- const std::string::const_iterator end);
+ void ParseFilterString(std::string_view filter_view);
/// Matches class/level combination against the filter, returning true if it passed.
bool CheckMessage(Class log_class, Level level) const;