Helper class that uses thread local storage to set up the default category and verbosity for the low level logging functions. 更多...
#include <LogScopedCategoryAndVerbosityOverride.h>
类 | |
| struct | FOverride |
| STructure to aggregate a category and verbosity pair 更多... | |
Public 成员函数 | |
| FLogScopedCategoryAndVerbosityOverride (FName Category, ELogVerbosity::Type Verbosity) | |
| Back up the existing category and verbosity pair, then sets them. | |
| ~FLogScopedCategoryAndVerbosityOverride () | |
| Restore the category and verbosity overrides to the previous value. | |
静态 Public 成员函数 | |
| static FOverride * | GetTLSCurrent () |
| Manages a TLS slot with the current overrides for category and verbosity. | |
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.