Visual Logger

Record text and debug shapes from game code with MOWO_VLOG, scrub back frame by frame, filter by category, verbosity and text, and see the frame's shapes.

Last updated Dec 4, 2026Version 1.1.0

The Output Log tells you what happened; the Visual Logger shows you where and when. Game code records short messages and shapes (a path, a sight cone, a goal) against the frame they belong to. Afterwards you drag a timeline back to the frame something went wrong and see the messages of that moment and its shapes drawn in the level. It is the tool for AI, navigation and gameplay bugs that last a single frame and are gone before you can look.

Turn it on

The panel comes from the Visual Logger Feature or Kit, which is off by default. Enable it in the Features & Kits window (Features and Kits and extensions) and restart the editor. It is an editor-only Feature or Kit: a game or server build never loads it, and your game code can keep its MOWO_VLOG calls either way. Then open Window ▸ Features and Kits ▸ Visual Logger.

Nothing records until you ask. Press Record in the panel, or tick Tools ▸ Visual Logger Recording, and then play. Game code costs one atomic load per call while recording is off, and the calls compile away in a release build.

Record from C++

Include the header and call the macros from any game module. A category groups messages ("AI", "Nav") and an owner names what the message is about, usually an actor.

Guard.cpp
#include <Logging/VisualLogger.h>

void AGuard::Tick(float deltaSeconds) {
	AActor::Tick(deltaSeconds);

	MOWO_VLOG("AI", "Guard", "state %d, target %s", m_state, m_targetName.c_str());

	const float from[3] = { pos.x, pos.y, pos.z };
	const float to[3] = { goal.x, goal.y, goal.z };
	MOWO_VLOG_LINE("Nav", "Guard", from, to, 0x00FF00FFu, "path leg");
	MOWO_VLOG_SPHERE("Nav", "Guard", to, 0.5f, 0xFFFF00FFu, "goal");
}
MacroRecords
MOWO_VLOG, MOWO_VLOG_WARN, MOWO_VLOG_ERRORA formatted text line at that verbosity
MOWO_VLOG_POINTA point in world space
MOWO_VLOG_LINEA line between two points
MOWO_VLOG_SPHEREA sphere with a centre and radius
MOWO_VLOG_BOXA box between its minimum and maximum corners
MOWO_VLOG_TEXTA text label at a point in the world, drawn facing the editor camera

Colours are 0xRRGGBBAA. Every entry is stamped with the current frame. The recording is a ring of the last 20,000 entries, so a long session keeps its newest history; the oldest entries fall off first. A category can be switched off at the source with FVisualLogger::Get().SetCategoryEnabled("AI", false).

The engine records into it too, so you see AI bugs without writing a call first:

CategoryWhat the engine records
AI.NavigationEach finished path request as a line from start to destination, green with its waypoint count or red when it failed
AI.PerceptionA directed attention point, a noise as a sphere of its loudness, and damage as a point with the instigator
AI.BehaviorTreeA behavior tree starting on an entity
Physics.ConstraintA constraint breaking, with the force and torque against its limits

Switch a category off with SetCategoryEnabled when it is too chatty.

Save and load a recording

Save writes the ring to <Project>/Saved/VisualLogger/Latest.mvlog, and Load replaces the ring with that file, so a bug caught on a server or a colleague's machine can be scrubbed later with recording off. From code, SaveRecording(path) and LoadRecording(path, append) take any path, and SerializeRecording returns the bytes. A truncated or foreign file is refused and the current ring is left as it was.

The panel

  1. Scrub

    The strip under the toolbar is the timeline: one bar per slice of frames, taller where more was logged and coloured by the worst verbosity there (grey for text, amber for warnings, red for errors). Click or drag on it to move the cursor.

  2. Step

    < and > move one frame. |< and >| jump to the previous and next frame that has an entry.

  3. Read

    The list shows the entries of the last 180 frames up to the cursor, with the ones on the cursor's frame highlighted: frame, [category], owner, text and the number of shapes.

  4. Filter

    The text box filters messages and shape labels. Show cycles All, Warnings+ and Errors. The chips switch categories off and on for viewing.

Live keeps the cursor on the newest frame while you play. Grabbing the timeline leaves Live and the cursor stays on its frame while newer entries arrive; if the ring wraps past it, the cursor moves to the oldest frame still held. Clear empties the recording.

Shapes draws the cursor frame's shapes in the level viewport, so with Play paused and the cursor on the frame, the path or goal the AI had at that moment appears where it was.

Engine sources

This page describes behavior implemented in these files of the engine repository, checked against commit e4da24ab4.

  • Engine/Source/Core/Logging/Api/Logging/VisualLogger.h
  • Engine/Source/Core/Logging/Api/Logging/VisualLogTimeline.h
  • Engine/Features/VisualLogger/VisualLogger.mfeature

Page feedback

Was this page helpful?