FLogStackTraceManager

NOTE: Don't move the log stack trace manager to .cpp yet; not until you decide how to implement, the similar ProcessEvent hook that will tie in to the trace manager, as you may try to generalize the below for that A log hook, which watches the log for specified log entries, and ties them into the stack trace manager

Windows
MacOS
Linux

Inheritance Hierarchy

FOutputDevice

FLogStackTraceManager

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilDebug.h

Include

#include "NUTUtilDebug.h"

Syntax

class FLogStackTraceManager : public FOutputDevice

Remarks

NOTE: Don't move the log stack trace manager to .cpp yet; not until you decide how to implement, the similar ProcessEvent hook that will tie in to the trace manager, as you may try to generalize the below for that A log hook, which watches the log for specified log entries, and ties them into the stack trace manager Most easily used through the LogTrace console command, as documented in UnitTestManager.cpp

Variables

Name Description

Public variable

TArray< FLogTra...

 

ExactMatches

List of exact log entries to watch for

Public variable

TArray< FLogTra...

 

PartialMatches

List of partial log entries to watch for

Constructors

Name Description

Public function

FLogStackTraceManager()

Base constructor

Destructors

Name Description

Public function Virtual

~FLogStackTraceManager()

Destructor

Functions

Name Description

Public function

void

 

AddLogTrace

(
    FString LogLine,
    bool bPartial,
    bool bDump
)

Adds a log line for log trace tracking

Public function

void

 

ClearAll

(
    bool bDump
)

Clears all log tracing

Public function

void

 

ClearLogTrace

(
    FString LogLine,
    bool bDump
)

Removes a log line from trace tracking

Public function Virtual

void

 

Serialize

(
    const TCHAR* Data,
    ELogVerbosity::Type Verbosity,
    const FName& Category
)

We're hiding UObject::Serialize() by declaring this. That's OK, but Clang will warn about it.

Classes

Name

Description

Public struct

FLogTraceEntry

Log trace entry

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss