FLogCategoryRegistry
- Module
- Logging
- Header
#include "Logging/Logger.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
FLogCategory* | Find | |
void | ForEach | |
bool | ParseLevel | Parses the engine names (trace/debug/info/display/warning/error/fatal) and UE's (VeryVerbose/Verbose/Log/Display/Warning/Error/Fatal, plus All and Off), case-insensitive. |
const char* | VerbosityName | UE's spelling of a level, for listings a developer reads. |
bool | IsEngineCategory | Unknown names (a plain string category nobody declared) count as engine. |
bool | Apply | One <category> <verbosity> instruction, as log, -LogCmds and [Core.Log] give it. |
uint32_t | ApplyLogCmds | "LogRender Verbose, LogAsset Warning" — UE's -LogCmds list. |
uint32_t | ApplyCommandLine | --logcmds="..." (or UE's -LogCmds="...") from the command line. |
uint32_t | ApplyConfig | The [Core.Log] section of an Engine.ini hierarchy: LogRender=Verbose, global=Warning. |
void | ResetAll | Every category back to its declared level, pending overrides dropped. |
void | RegisterConsoleCommand | Registers the log console command: log lists every category and its level, log <category> <level> sets one, log <category> reset restores the level it was declared with. |
void | Register | |
void | Unregister |
Function details
Find
static FLogCategory* Find(std::string_view name)ForEach
static void ForEach(const std::function<void(FLogCategory&)>& visitor)ParseLevel
static bool ParseLevel(std::string_view text, LogLevel& out)Parses the engine names (trace/debug/info/display/warning/error/fatal) and UE's (VeryVerbose/Verbose/Log/Display/Warning/Error/Fatal, plus All and Off), case-insensitive. False leaves out untouched.
VerbosityName
static const char* VerbosityName(LogLevel level)UE's spelling of a level, for listings a developer reads.
IsEngineCategory
static bool IsEngineCategory(std::string_view name)Unknown names (a plain string category nobody declared) count as engine.
Apply
static bool Apply(std::string_view category, std::string_view verbosity)One <category> <verbosity> instruction, as log, -LogCmds and [Core.Log] give it. global (or all) reaches every category, reset restores the declared level. A category that is not registered yet — a game module or plugin that loads later — takes the level when it registers. False for an unknown verbosity.
ApplyLogCmds
static uint32_t ApplyLogCmds(std::string_view list)"LogRender Verbose, LogAsset Warning" — UE's -LogCmds list. Returns how many instructions applied.
ApplyCommandLine
static uint32_t ApplyCommandLine()--logcmds="..." (or UE's -LogCmds="...") from the command line.
ApplyConfig
static uint32_t ApplyConfig(const FConfigIniFile& file)The [Core.Log] section of an Engine.ini hierarchy: LogRender=Verbose, global=Warning. Applied before the command line, which wins.
ResetAll
static void ResetAll()Every category back to its declared level, pending overrides dropped.
RegisterConsoleCommand
static void RegisterConsoleCommand()Registers the log console command: log lists every category and its level, log <category> <level> sets one, log <category> reset restores the level it was declared with. Called once during engine init.
Register
static void Register(FLogCategory* category)Unregister
static void Unregister(FLogCategory* category)