diff options
| author | Stefan Boberg <[email protected]> | 2026-04-23 18:16:57 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-04-23 18:16:57 +0200 |
| commit | 0232b991cd7d8e3a2114ea30e4591dd3e7b65c36 (patch) | |
| tree | 94730e7594fd09ae1fa820391ce311f6daf13905 /src/zencore/logging/logger.cpp | |
| parent | Fix forward declaration order for s_GotSigWinch and SigWinchHandler (diff) | |
| parent | trace: declare Region event name fields as AnsiString (#1012) (diff) | |
| download | archived-zen-sb/zen-help.tar.xz archived-zen-sb/zen-help.zip | |
Merge branch 'main' into sb/zen-helpsb/zen-help
- Combine HelpCommand (this branch) with HistoryCommand (main) in zen CLI dispatcher
- Keep filter-aware TuiPickOne rewrite; adopt main's ASCII arrow glyphs in doc comment
Diffstat (limited to 'src/zencore/logging/logger.cpp')
| -rw-r--r-- | src/zencore/logging/logger.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/zencore/logging/logger.cpp b/src/zencore/logging/logger.cpp index ff1db3edc..830d2b611 100644 --- a/src/zencore/logging/logger.cpp +++ b/src/zencore/logging/logger.cpp @@ -1,6 +1,7 @@ // Copyright Epic Games, Inc. All Rights Reserved. #include <zencore/logging/logger.h> +#include <zencore/logging/tracelog.h> #include <zencore/thread.h> #include <string> @@ -33,6 +34,12 @@ Logger::Log(const LogPoint& Point, fmt::format_args Args) fmt::basic_memory_buffer<char, 250> Buffer; fmt::vformat_to(fmt::appender(Buffer), Point.FormatString, Args); +#if ZEN_WITH_TRACE + // Forward the typed argument pack to the trace system while we still have + // it - sinks are invoked below with the already-rendered payload. + TraceLogTyped(*this, Point, Args); +#endif + LogMessage LogMsg(Point, m_Impl->m_Name, std::string_view(Buffer.data(), Buffer.size())); LogMsg.SetThreadId(GetCurrentThreadId()); SinkIt(LogMsg); |