diff options
Diffstat (limited to 'src/common/logging/backend.h')
| -rw-r--r-- | src/common/logging/backend.h | 7 |
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 | ||
| 107 | void AddBackend(std::unique_ptr<Backend> backend); | 106 | void AddBackend(std::unique_ptr<Backend> backend); |
| 108 | 107 | ||
| 109 | void RemoveBackend(const std::string& backend_name); | 108 | void RemoveBackend(std::string_view backend_name); |
| 110 | 109 | ||
| 111 | Backend* GetBackend(const std::string& backend_name); | 110 | Backend* 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 |