class
ConsoleSink
- Module
- Logging
- Header
#include "Logging/Logger.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
ConsoleSink(bool useColors = true, bool showLocation = true, bool allToStderr = … | ConsoleSink | allToStderr keeps stdout for a protocol: the editor's --mcp-stdio speaks JSON-RPC on it, one message per line, and a log line or a colour escape in between is a corrupt message to the client. |
Public functions
Function details
ConsoleSink
C++
ConsoleSink(bool useColors = true, bool showLocation = true, bool allToStderr = false) : m_useColors(useColors && !allToStderr), m_showLocation(showLocation), m_allToStderr(allToStderr)allToStderr keeps stdout for a protocol: the editor's --mcp-stdio speaks JSON-RPC on it, one message per line, and a log line or a colour escape in between is a corrupt message to the client.
Write
C++
void Write(const LogMessage& msg) overrideFlush
C++
void Flush() overrideGenerated from Logging/Logger.h via logging.json · Oct 27, 2026Version 1.0.0