RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
DebuggerSink.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <string>
6
7namespace RST::Log {
8
10 class DebuggerSink : public ASink {
11 public:
13 [[nodiscard]] static bool isSupported() noexcept;
14
15 protected:
16 void log(const LogMessage& message) override;
17
18 private:
19 std::string _text;
20 };
21
22}
Base class for sinks: handles the level, the pattern and the locking.
Definition ASink.hpp:17
Sends messages to the attached debugger on Windows; does nothing elsewhere.
Definition DebuggerSink.hpp:10
void log(const LogMessage &message) override
Writes one message; called with the sink mutex locked.
static bool isSupported() noexcept
Whether this platform has a debugger output.
Thread-safe logging: loggers, sinks, patterns and macros.
Definition Terminal.hpp:8
A log record as passed to the sinks.
Definition LogMessage.hpp:18