summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-07-20 17:17:04 -0700
committerGravatar GitHub2018-07-20 17:17:04 -0700
commit8afc21f175548287c1f678e28c999567299eec4e (patch)
tree4e7425138bc85a064db386194ffce1caa8e6a384 /src/common/logging/backend.h
parentMerge pull request #745 from lioncash/package (diff)
parentlogging/filter: Use std::string_view in ParseFilterString() (diff)
downloadyuzu-8afc21f175548287c1f678e28c999567299eec4e.tar.gz
yuzu-8afc21f175548287c1f678e28c999567299eec4e.tar.xz
yuzu-8afc21f175548287c1f678e28c999567299eec4e.zip
Merge pull request #743 from lioncash/view
logging: Use std::string_view where applicable
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r--src/common/logging/backend.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h
index 57cdf6b2d..b3f4b9cef 100644
--- a/src/common/logging/backend.h
+++ b/src/common/logging/backend.h
@@ -4,10 +4,9 @@
4#pragma once 4#pragma once
5 5
6#include <chrono> 6#include <chrono>
7#include <cstdarg>
8#include <memory> 7#include <memory>
9#include <string> 8#include <string>
10#include <utility> 9#include <string_view>
11#include "common/file_util.h" 10#include "common/file_util.h"
12#include "common/logging/filter.h" 11#include "common/logging/filter.h"
13#include "common/logging/log.h" 12#include "common/logging/log.h"
@@ -106,9 +105,9 @@ private:
106 105
107void AddBackend(std::unique_ptr<Backend> backend); 106void AddBackend(std::unique_ptr<Backend> backend);
108 107
109void RemoveBackend(const std::string& backend_name); 108void RemoveBackend(std::string_view backend_name);
110 109
111Backend* GetBackend(const std::string& backend_name); 110Backend* GetBackend(std::string_view backend_name);
112 111
113/** 112/**
114 * Returns the name of the passed log class as a C-string. Subclasses are separated by periods 113 * Returns the name of the passed log class as a C-string. Subclasses are separated by periods