FUnitLogRedirect

Implements a UNIT_LOG interface, which redirects to another unit log interface (e.g. redirect MinimalClient UNIT_LOG's to a UnitTest)

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetcodeUnitTest

Header

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

Include

#include "UnitLogging.h"

Syntax

class FUnitLogRedirect : public FUnitLogInterface

Remarks

Implements a UNIT_LOG interface, which redirects to another unit log interface (e.g. redirect MinimalClient UNIT_LOG's to a UnitTest)

Constructors

Name Description

Public function

FUnitLogRedirect()

Base constructor

Functions

Name Description

Public function

void

 

SetInterface

(
    FUnitLogInterface* InInterface
)

Sets the interface we should redirect to

Overridden from FUnitLogInterface

Name Description

Public function Virtual

UUnitTest &#...

 

GetUnitTest()

If the log interface is tied to a unit test, this matches it up to an active unit test

Public function Virtual

void

 

NotifyLocalLog

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

Do NOT pass this back to TargetInterface, because if the TargetInterface is the source, we can't be the source (would cause an infinite loop, for UnitTask->ClientUnitTest->UnitTask)

Public function Virtual

void

 

NotifyStatusLog

(
    ELogType InLogType,
    const TCHAR* Data
)

As above, except for log entries directed towards the Unit Test Status window.

Public function Virtual

void

 

SetLogColor

(
    FSlateColor InLogColor
)

Override the default log color

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