| FScopedLog
|
Module |
|
Header |
/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilDebug.h |
Include |
#include "NUTUtilDebug.h" |
class FScopedLog
A class for enabling verbose log message categories, within a particular code scope (disabled when going out of scope). NOTE: If you are logging any kind of net-related log messages, specify a unit test (even if you aren't doing remote logging)
Also supports remote (server) logging, for net functions executed within the current code scope (causes net packets to be flushed both upon entering the current scope, and when exiting it - required for correct log timing).
NOTE: If you are trying to catch remote log messages deep within the internal game netcode, then this class may not be appropriate, as remote logging passes through the netcode (YMMV)
Name | Description | ||
---|---|---|---|
|
bRemoteLogging |
Whether or not this is also controlling remote logging as well |
|
|
bSuppressLogging |
Whether or not to suppress instead of enable logging |
|
|
LogCategories |
The list of unsuppressed log messages |
|
|
UnitTest |
Stores a reference to the unit test doing the logging, if specified |
Name | Description | |
---|---|---|
|
FScopedLog() |
|
|
FScopedLog ( |
Constructor used for setting up the type of logging that is done. |
|
FScopedLog ( |
As above, but for a single log category. |
Name | Description | |
---|---|---|
|
~FScopedLog() |
Name | Description | ||
---|---|---|---|
|
InternalConstruct ( |