class
FOutputDeviceRedirector
- Module
- Logging
- Header
#include "Logging/FOutputDevice.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
FOutputDeviceRedirector& | Get | |
void | AddOutputDevice | Register a sink. |
void | RemoveOutputDevice | Detach a previously-added sink. |
void | Serialize | Fan out one record to every registered sink. |
void | Flush | Flush every registered sink (before shutdown, before a crash dump upload). |
void | SetMinLevel | Sinks see records at or above this level only. |
Function details
Get
C++
static FOutputDeviceRedirector& Get()AddOutputDevice
C++
void AddOutputDevice(FOutputDevice* device)Register a sink. Caller retains ownership — the redirector never deletes the device; cleanup after RemoveOutputDevice() is the caller's job.
RemoveOutputDevice
C++
void RemoveOutputDevice(FOutputDevice* device)Detach a previously-added sink. Safe to call from inside Serialize() — the broadcast iterates a snapshot of the list.
Serialize
C++
void Serialize(const LogRecord& record)Fan out one record to every registered sink. Thread-safe; sinks themselves are responsible for internal locking.
Flush
C++
void Flush()Flush every registered sink (before shutdown, before a crash dump upload).
SetMinLevel
C++
void SetMinLevel(LogLevel level)Sinks see records at or above this level only. Default Trace.
Generated from Logging/FOutputDevice.h via logging.json · Oct 27, 2026Version 1.0.0