FLogStackTraceManager

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

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 NOTE: The LogLine does NOT match the category or verbosity (e.g. LogNet or Warning/Verbose) of logs NOTE: Partial matches, will output to log when encountered, so matched logs can be identified

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