FLogScopedCategoryAndVerbosityOverride

Helper class that uses thread local storage to set up the default category and verbosity for the low level logging functions.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Logging/LogScopedCategoryAndVerbosityOverride.h

Include

#include "Logging/LogScopedCategoryAndVerbosityOverride.h"

Syntax

class FLogScopedCategoryAndVerbosityOverride

Remarks

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.

Constructors

Name Description

Public function

FLogScopedCategoryAndVerbosityOverride

(
    FName Category,
    ELogVerbosity::Type Verbosity
)

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

Destructors

Name Description

Public function

~FLogScopedCategoryAndVerbosityOverride()

Restore the category and verbosity overrides to the previous value.

Functions

Name Description

Public function Static

FOverride &#...

 

GetTLSCurrent()

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

Classes

Name

Description

Public struct

FOverride

STructure to aggregate a category and verbosity pair

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss