BCLog::Logger::GetLogCategory

Return log flag if str parses as a log category.

Synopsis

Declared in <logging.h>

static
std::optional<BCLog::LogFlags>
GetLogCategory(std::string_view str);

Return Value

The matching category flag, or nullopt if the string is not a known category.

Parameters

NameDescription
strThe category name to parse.