UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FLogScopedCategoryAndVerbosityOverride Class Reference

#include <LogScopedCategoryAndVerbosityOverride.h>

Classes

struct  FOverride
 

Public Member Functions

CORE_API FLogScopedCategoryAndVerbosityOverride (FName Category, ELogVerbosity::Type Verbosity)
 
CORE_API ~FLogScopedCategoryAndVerbosityOverride ()
 

Static Public Member Functions

static CORE_API FOverrideGetTLSCurrent ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FLogScopedCategoryAndVerbosityOverride()

FLogScopedCategoryAndVerbosityOverride::FLogScopedCategoryAndVerbosityOverride ( FName  Category,
ELogVerbosity::Type  Verbosity 
)

Back up the existing category and verbosity pair, then sets them.

◆ ~FLogScopedCategoryAndVerbosityOverride()

FLogScopedCategoryAndVerbosityOverride::~FLogScopedCategoryAndVerbosityOverride ( )

Restore the category and verbosity overrides to the previous value.

Member Function Documentation

◆ GetTLSCurrent()

UE_AUTORTFM_ALWAYS_OPEN FLogScopedCategoryAndVerbosityOverride::FOverride * FLogScopedCategoryAndVerbosityOverride::GetTLSCurrent ( )
static

Manages a TLS slot with the current overrides for category and verbosity.


The documentation for this class was generated from the following files: