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
| Alias | Description |
|---|---|
using FObserver = std::function<void(const FMessageEntry&)> | |
using FPageObserver = std::function<void(const FMessagePage&)> |
Properties
| Type | Name | Description |
|---|---|---|
static constexpr size_t | kMaxEntries | Default 2000. |
Public functions
| Returns | Name | Description |
|---|---|---|
FMessageLog& | Get | |
void | RegisterPage | Names a page. |
bool | IsPageRegistered | |
std::string | PageLabel | |
std::vector<FMessagePage> | Pages | |
void | Post | 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). |
void | PostText | |
void | Snapshot | Every entry, or one page's when page is non-empty. |
void | Clear | |
void | ClearPage | |
uint64_t | Revision | |
size_t | Count | |
int32_t | ErrorCount | |
int32_t | WarningCount | |
uint32_t | AddObserver | Observers outlive nothing: the owner removes its handle before it dies. |
void | RemoveObserver | |
uint32_t | AddPageObserver | |
void | RemovePageObserver |
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) constPageLabel
C++
std::string PageLabel(const std::string& id) constPages
C++
std::vector<FMessagePage> Pages() constPost
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()) constEvery 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() constCount
C++
size_t Count() constErrorCount
C++
int32_t ErrorCount() constWarningCount
C++
int32_t WarningCount() constAddObserver
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