logging: Move GetLogCategory into Logger class

This commit is contained in:
Anthony Towns
2026-02-11 08:15:09 +10:00
parent 58113e5833
commit abea304dd6
3 changed files with 5 additions and 5 deletions

View File

@@ -224,7 +224,7 @@ static const std::unordered_map<BCLog::LogFlags, std::string> LOG_CATEGORIES_BY_
}(LOG_CATEGORIES_BY_STR)
};
std::optional<BCLog::LogFlags> GetLogCategory(std::string_view str)
std::optional<BCLog::LogFlags> BCLog::Logger::GetLogCategory(std::string_view str)
{
if (str.empty() || str == "1" || str == "all") {
return BCLog::ALL;