aboutsummaryrefslogtreecommitdiff
path: root/src/common/logging/filter.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-20 17:17:04 -0700
committerGitHub <noreply@github.com>2018-07-20 17:17:04 -0700
commit8afc21f175548287c1f678e28c999567299eec4e (patch)
tree4e7425138bc85a064db386194ffce1caa8e6a384 /src/common/logging/filter.h
parentd4104c72aa13851b770fffe988d1695fd1d8230a (diff)
parentf63ccbd93640bfd1c8bb8aa68f1ed1b0e0a91e58 (diff)
Merge pull request #743 from lioncash/view
logging: Use std::string_view where applicable
Diffstat (limited to 'src/common/logging/filter.h')
-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;