UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FLogCategoryBase Struct Reference

#include <LogCategory.h>

+ Inheritance diagram for FLogCategoryBase:

Public Member Functions

UE_API FLogCategoryBase (const FLogCategoryName &CategoryName, ELogVerbosity::Type DefaultVerbosity, ELogVerbosity::Type CompileTimeVerbosity)
 
UE_API FLogCategoryBase (const TCHAR *CategoryName, ELogVerbosity::Type DefaultVerbosity, ELogVerbosity::Type CompileTimeVerbosity)
 
UE_API ~FLogCategoryBase ()
 
UE_FORCEINLINE_HINT constexpr bool IsSuppressed (ELogVerbosity::Type VerbosityLevel) const
 
UE_API void PostTrigger (ELogVerbosity::Type VerbosityLevel)
 
constexpr const FLogCategoryNameGetCategoryName () const
 
constexpr ELogVerbosity::Type GetVerbosity () const
 
UE_API void SetVerbosity (ELogVerbosity::Type Verbosity)
 
constexpr ELogVerbosity::Type GetCompileTimeVerbosity () const
 

Friends

class FLogSuppressionImplementation
 
class FLogScopedVerbosityOverride
 

Detailed Description

Base class for all log categories.

Constructor & Destructor Documentation

◆ FLogCategoryBase() [1/2]

FLogCategoryBase::FLogCategoryBase ( const FLogCategoryName CategoryName,
ELogVerbosity::Type  DefaultVerbosity,
ELogVerbosity::Type  CompileTimeVerbosity 
)

Constructor, registers with the log suppression system and sets up the default values.

Parameters
CategoryNameName of the category.
DefaultVerbosityDefault verbosity used to filter this category at runtime.
CompileTimeVerbosityVerbosity used to filter this category at compile time.

◆ FLogCategoryBase() [2/2]

FLogCategoryBase::FLogCategoryBase ( const TCHAR CategoryName,
ELogVerbosity::Type  DefaultVerbosity,
ELogVerbosity::Type  CompileTimeVerbosity 
)

Constructor, registers with the log suppression system and sets up the default values.

Parameters
CategoryNameName of the category.
DefaultVerbosityDefault verbosity used to filter this category at runtime.
CompileTimeVerbosityVerbosity used to filter this category at compile time.

◆ ~FLogCategoryBase()

FLogCategoryBase::~FLogCategoryBase ( )

Destructor, unregisters from the log suppression system.

Member Function Documentation

◆ GetCategoryName()

constexpr const FLogCategoryName & FLogCategoryBase::GetCategoryName ( ) const
inlineconstexpr

◆ GetCompileTimeVerbosity()

constexpr ELogVerbosity::Type FLogCategoryBase::GetCompileTimeVerbosity ( ) const
inlineconstexpr

Gets the compile time verbosity.

◆ GetVerbosity()

constexpr ELogVerbosity::Type FLogCategoryBase::GetVerbosity ( ) const
inlineconstexpr

Gets the working verbosity.

◆ IsSuppressed()

UE_FORCEINLINE_HINT constexpr bool FLogCategoryBase::IsSuppressed ( ELogVerbosity::Type  VerbosityLevel) const
inlineconstexpr

Should not generally be used directly. Tests the runtime verbosity and maybe triggers a debug break, etc.

◆ PostTrigger()

void FLogCategoryBase::PostTrigger ( ELogVerbosity::Type  VerbosityLevel)

Called just after a logging statement being allow to print. Checks a few things and maybe breaks into the debugger.

◆ SetVerbosity()

void FLogCategoryBase::SetVerbosity ( ELogVerbosity::Type  Verbosity)

Sets up the working verbosity and clamps to the compile time verbosity.

Friends And Related Symbol Documentation

◆ FLogScopedVerbosityOverride

◆ FLogSuppressionImplementation


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