1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-03 01:46:31 -05:00

logging: Add DebuggerBackend for logging to Visual Studio

This commit is contained in:
Carl Kenner
2018-10-05 12:52:49 +09:30
parent e92251795a
commit f5f6292810
4 changed files with 29 additions and 2 deletions

View File

@@ -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);