diff options
author | greggameplayer <33609333+greggameplayer@users.noreply.github.com> | 2018-11-06 19:05:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 19:05:57 +0100 |
commit | d3b9599b2dd084db5b180a6b13ea0ceaec5c7587 (patch) | |
tree | 79bcd8922cb90d06b61e07b5cc6e84e320aa3128 /src/common/logging/backend.h | |
parent | 9249fadb9e2703eaaedd023496126078b4e6c690 (diff) | |
parent | dd321dc85f5ff4ee421b04f2d57ad17af85d90fb (diff) |
Merge branch 'master' into Texture2DArray
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r-- | src/common/logging/backend.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index 11edbf1b6..91bb0c309 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h @@ -103,6 +103,20 @@ private: std::size_t bytes_written; }; +/** + * Backend that writes to Visual Studio's output window + */ +class DebuggerBackend : public Backend { +public: + static const char* Name() { + return "debugger"; + } + const char* GetName() const override { + return Name(); + } + void Write(const Entry& entry) override; +}; + void AddBackend(std::unique_ptr<Backend> backend); void RemoveBackend(std::string_view backend_name); |