Navigation
API > API/Runtime > API/Runtime/Core
Helper class that uses thread local storage to set up the default category and verbosity for the low level logging functions. This is what allow a UE_LOG(LogHAL, Log, TEXT("...")); within a UE_LOG statement to know what the category and verbosity is. When one of these goes out of scope, it restores the previous values.
Name
FLogScopedCategoryAndVerbosityOverride
Type
class
Header File
/Engine/Source/Runtime/Core/Public/Logging/LogScopedCategoryAndVerbosityOverride.h
Include Path
#include "Logging/LogScopedCategoryAndVerbosityOverride.h"
Syntax
class FLogScopedCategoryAndVerbosityOverride
Copy full snippet
Constructors
Name
Remarks
Include Path
Unreal Specifiers
Back up the existing category and verbosity pair, then sets them.
Logging/LogScopedCategoryAndVerbosityOverride.h
Destructors
Name
Remarks
Include Path
Unreal Specifiers
~FLogScopedCategoryAndVerbosityOverride()
Restore the category and verbosity overrides to the previous value.
Logging/LogScopedCategoryAndVerbosityOverride.h
Structs
Name
Remarks
FOverride
STructure to aggregate a category and verbosity pair
Variables
Protected
Name
Type
Remarks
Include Path
Unreal Specifiers
Backup
FOverride
Backup of the category, verbosity pairs that was present when we were constructed
Logging/LogScopedCategoryAndVerbosityOverride.h
Functions
Public
Static
Name
Remarks
Include Path
Unreal Specifiers
Manages a TLS slot with the current overrides for category and verbosity.
Logging/LogScopedCategoryAndVerbosityOverride.h