class

LogSink

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

Constructors

SignatureNameDescription
virtual ~LogSink() = default~LogSink

Public functions

ReturnsNameDescription
voidWrite
voidFlush
voidCrashFlushThe crash path's flush: the process may already be broken and another thread may hold this sink's lock forever, so it must never block on it and never allocate.
voidSetMinLevel
LogLevelGetMinLevel

Function details

~LogSink

C++
virtual ~LogSink() = default

Write

C++
virtual void Write(const LogMessage& msg) = 0

Flush

C++
virtual void Flush()

CrashFlush

C++
virtual void CrashFlush()

The crash path's flush: the process may already be broken and another thread may hold this sink's lock forever, so it must never block on it and never allocate. Defaults to Flush for sinks that hold nothing.

SetMinLevel

C++
void SetMinLevel(LogLevel level)

GetMinLevel

C++
LogLevel GetMinLevel() const
Generated from Logging/Logger.h via logging.json · Oct 27, 2026Version 1.0.0