class

ConsoleSink

Module
Logging
Header
#include "Logging/Logger.h"
Namespace
Mowo

Constructors

SignatureNameDescription
ConsoleSink(bool useColors = true, bool showLocation = true, bool allToStderr = …ConsoleSinkallToStderr 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

ReturnsNameDescription
voidWrite
voidFlush

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) override

Flush

C++
void Flush() override
Generated from Logging/Logger.h via logging.json · Oct 27, 2026Version 1.0.0