class

FMessageLog

Process-wide and mutex-guarded: an import or a cook reports from a worker thread while a panel snapshots on the render thread. The ring is bounded for the same reason the log sink's is.

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

Type aliases

AliasDescription
using FObserver = std::function<void(const FMessageEntry&)>
using FPageObserver = std::function<void(const FMessagePage&)>

Properties

TypeNameDescription
static constexpr size_tkMaxEntriesDefault 2000.

Public functions

ReturnsNameDescription
FMessageLog&Get
voidRegisterPageNames a page.
boolIsPageRegistered
std::stringPageLabel
std::vector<FMessagePage>Pages
voidPostStamps Time and Seq, registers the page when new, keeps the ring bounded and tells the observers (outside the lock, in post order per thread).
voidPostText
voidSnapshotEvery entry, or one page's when page is non-empty.
voidClear
voidClearPage
uint64_tRevision
size_tCount
int32_tErrorCount
int32_tWarningCount
uint32_tAddObserverObservers outlive nothing: the owner removes its handle before it dies.
voidRemoveObserver
uint32_tAddPageObserver
voidRemovePageObserver

Function details

Get

C++
static FMessageLog& Get()

RegisterPage

C++
void RegisterPage(const std::string& id, const std::string& label = std::string())

Names a page. A repeat call only updates the label; an empty label shows the id.

IsPageRegistered

C++
bool IsPageRegistered(const std::string& id) const

PageLabel

C++
std::string PageLabel(const std::string& id) const

Pages

C++
std::vector<FMessagePage> Pages() const

Post

C++
void Post(FMessageEntry entry)

Stamps Time and Seq, registers the page when new, keeps the ring bounded and tells the observers (outside the lock, in post order per thread).

PostText

C++
void PostText(EMessageSeverity severity, const std::string& page, const std::string& text)

Snapshot

C++
void Snapshot(std::vector<FMessageEntry>& out, const std::string& page = std::string()) const

Every entry, or one page's when page is non-empty.

Clear

C++
void Clear()

ClearPage

C++
void ClearPage(const std::string& page)

Revision

C++
uint64_t Revision() const

Count

C++
size_t Count() const

ErrorCount

C++
int32_t ErrorCount() const

WarningCount

C++
int32_t WarningCount() const

AddObserver

C++
uint32_t AddObserver(FObserver observer)

Observers outlive nothing: the owner removes its handle before it dies. A new entry observer is NOT replayed the existing ring; call Snapshot.

RemoveObserver

C++
void RemoveObserver(uint32_t handle)

AddPageObserver

C++
uint32_t AddPageObserver(FPageObserver observer)

RemovePageObserver

C++
void RemovePageObserver(uint32_t handle)
Generated from Logging/MessageLog.h via logging.json · Dec 5, 2026Version 1.1.0