Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
Implements a UNIT_LOG interface, which redirects to another unit log interface (e.g. redirect MinimalClient UNIT_LOG's to a UnitTest)
| Name | FUnitLogRedirect |
| Type | class |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/UnitLogging.h |
| Include Path | #include "UnitLogging.h" |
Syntax
class FUnitLogRedirect : public FUnitLogInterface
Inheritance Hierarchy
- FUnitLogInterface → FUnitLogRedirect
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUnitLogRedirect() |
Base constructor | UnitLogging.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TargetInterface | FUnitLogInterface * | The interface to redirect to | UnitLogging.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetInterface
(
FUnitLogInterface* InInterface |
Sets the interface we should redirect to | UnitLogging.h |
Overridden from FUnitLogInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UUnitTest * GetUnitTest () |
If the log interface is tied to a unit test, this matches it up to an active unit test | UnitLogging.h | |
virtual void NotifyLocalLog
(
ELogType InLogType, |
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) | UnitLogging.h | |
virtual void NotifyStatusLog
(
ELogType InLogType, |
As above, except for log entries directed towards the Unit Test Status window. | UnitLogging.h | |
virtual void SetLogColor
(
FSlateColor InLogColor |
Override the default log color | UnitLogging.h |