|
RSTools 3.1.0
Versatile C++20 utility library
|
Sends messages to the attached debugger on Windows; does nothing elsewhere. More...
#include <RST/log/Sinks/DebuggerSink.hpp>
Static Public Member Functions | |
| static bool | isSupported () noexcept |
| Whether this platform has a debugger output. | |
Protected Member Functions | |
| void | log (const LogMessage &message) override |
| Writes one message; called with the sink mutex locked. | |
Protected Member Functions inherited from RST::Log::ASink | |
| virtual void | flushSink () |
| Flushes the output; called with the sink mutex locked. | |
| std::string_view | formatted (const LogMessage &message) |
| The message formatted with the sink pattern. | |
| std::mutex & | sinkMutex () noexcept |
Additional Inherited Members | |
Public Member Functions inherited from RST::Log::ASink | |
| ASink () | |
| ~ASink () override | |
| void | write (const LogMessage &message) final |
| Receives a message from a logger. | |
| void | flush () final |
| void | setLevel (LogLevel level) noexcept final |
| Minimum level accepted by this sink. | |
| LogLevel | getLevel () const noexcept final |
| bool | shouldLog (LogLevel level) const noexcept final |
| void | setFormatter (std::shared_ptr< Formatter > formatter) final |
| Shares a Formatter between sinks. | |
| void | setPattern (std::string_view pattern) final |
Formats the messages with pattern; see Formatter. | |
Public Member Functions inherited from RST::Log::ISink | |
| virtual | ~ISink ()=default |
Sends messages to the attached debugger on Windows; does nothing elsewhere.
|
staticnoexcept |
Whether this platform has a debugger output.
|
overrideprotectedvirtual |
Writes one message; called with the sink mutex locked.
Implements RST::Log::ASink.