class
FVisualLogger
- Module
- Logging
- Header
#include "Logging/VisualLogger.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr size_t | kDefaultCapacity | Default 20000. |
Public functions
| Returns | Name | Description |
|---|---|---|
FVisualLogger& | Get | |
bool | IsEnabled | |
void | SetEnabled | |
size_t | Capacity | |
void | SetCapacity | |
void | SetCategoryEnabled | A category switched off records nothing, so a chatty AI system can be silenced at the source instead of filtered in the viewer. |
bool | IsCategoryEnabled | |
void | Record | |
void | LogText | |
void | LogShape | |
void | LogPoint | |
void | LogLine | |
void | LogSphere | |
void | LogBox | |
void | LogWorldText | |
std::vector<FVisualLogEntry> | Snapshot | |
std::vector<FVisualLogEntry> | Query | |
std::vector<std::string> | Categories | |
std::vector<std::string> | Owners | |
bool | FrameBounds | The oldest and newest frame still in the ring; false when it is empty. |
size_t | Count | |
uint64_t | Revision | |
void | Clear | |
__attribute__ | ||
std::string | SerializeRecording | A recording is the ring written as one binary blob (magic, version, then every entry with its shapes), so a bug seen on a server or a client can be opened later in the viewer. |
bool | DeserializeRecording | |
std::string | DefaultRecordingPath | <Saved>/VisualLogger/<name>.<recording extension>, beside the logs. |
bool | SaveRecording | |
bool | LoadRecording | |
bool | Matches |
Function details
Get
C++
static FVisualLogger& Get()IsEnabled
C++
bool IsEnabled() constSetEnabled
C++
void SetEnabled(bool enabled)Capacity
C++
size_t Capacity() constSetCapacity
C++
void SetCapacity(size_t capacity)SetCategoryEnabled
C++
void SetCategoryEnabled(const std::string& category, bool enabled)A category switched off records nothing, so a chatty AI system can be silenced at the source instead of filtered in the viewer.
IsCategoryEnabled
C++
bool IsCategoryEnabled(const std::string& category) constRecord
C++
void Record(FVisualLogEntry entry)LogText
C++
void LogText(const char* category, const char* owner, EVisualLogVerbosity verbosity, const std::string& text)LogShape
C++
void LogShape(const char* category, const char* owner, EVisualLogVerbosity verbosity, const FVisualLogShape& shape, const std::string& text = std::string())LogPoint
C++
void LogPoint(const char* category, const char* owner, const float position[3], uint32_t color = 0xFFFFFFFFu, const std::string& label = std::string())LogLine
C++
void LogLine(const char* category, const char* owner, const float from[3], const float to[3], uint32_t color = 0xFFFFFFFFu, const std::string& label = std::string())LogSphere
C++
void LogSphere(const char* category, const char* owner, const float center[3], float radius, uint32_t color = 0xFFFFFFFFu, const std::string& label = std::string())LogBox
C++
void LogBox(const char* category, const char* owner, const float minCorner[3], const float maxCorner[3], uint32_t color = 0xFFFFFFFFu, const std::string& label = std::string())LogWorldText
C++
void LogWorldText(const char* category, const char* owner, const float position[3], const std::string& text, float height = 0.25f, uint32_t color = 0xFFFFFFFFu)Snapshot
C++
std::vector<FVisualLogEntry> Snapshot() constQuery
C++
std::vector<FVisualLogEntry> Query(const FVisualLogQuery& query) constCategories
C++
std::vector<std::string> Categories() constOwners
C++
std::vector<std::string> Owners() constFrameBounds
C++
bool FrameBounds(uint64_t& first, uint64_t& last) constThe oldest and newest frame still in the ring; false when it is empty.
Count
C++
size_t Count() constRevision
C++
uint64_t Revision() constClear
C++
void Clear()__attribute__
C++
__attribute__((format(printf, 1, 2))) static std::string Format(const char* format, ...)SerializeRecording
C++
std::string SerializeRecording() constA recording is the ring written as one binary blob (magic, version, then every entry with its shapes), so a bug seen on a server or a client can be opened later in the viewer. Frames and times are stored as recorded. Loading replaces the ring unless append; entries get fresh serials and bypass IsEnabled, since a viewer opens a recording with recording off. False on an unreadable, truncated or newer-version file, leaving the ring untouched.
DeserializeRecording
C++
bool DeserializeRecording(const void* data, size_t size, bool append = false)DefaultRecordingPath
C++
static std::string DefaultRecordingPath(const std::string& name)<Saved>/VisualLogger/<name>.<recording extension>, beside the logs.
SaveRecording
C++
bool SaveRecording(const std::string& path) constLoadRecording
C++
bool LoadRecording(const std::string& path, bool append = false)Matches
C++
static bool Matches(const FVisualLogEntry& entry, const FVisualLogQuery& query)Generated from Logging/VisualLogger.h via logging.json · Dec 5, 2026Version 1.1.0