FUnitLogInterface

Implements an interface for using the UNIT_LOG etc. macros above, within a class

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetcodeUnitTest

Header

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

Include

#include "UnitLogging.h"

Syntax

class FUnitLogInterface

Remarks

Implements an interface for using the UNIT_LOG etc. macros above, within a class

Variables

Name Description

Protected variable

FSlateColor

 

LogColor

Convert to pointer, to eliminate extra package dependency.

Constructors

Name Description

Public function

FUnitLogInterface()

Base constructor

Destructors

Name Description

Public function Virtual

~FUnitLogInterface()

Functions

Name Description

Public function

void

 

ClearLogColor()

Resets the log color to default

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

bool

 

IsConnectionLogSource

(
    UNetConnection* InConnection
)

Whether or not this log interface is the source of a UNetConnection - used for deciding where to direct, UNetConnection log hooks

Public function Virtual

bool

 

IsTimerLogSource

(
    UObject* InTimerDelegateObject
)

Whether or not this log interface is the source of an FTimerManager delegate object, used for hooking logs triggered during global timer manager delegates.

Public function Virtual

void

 

NotifyLocalLog

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

For implementation in subclasses, for helping to track local log entries related to a unit test.

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