Add log level which prints performed actions

This commit is contained in:
WarmUpTill
2024-03-02 00:48:06 +01:00
committed by WarmUpTill
parent 9acbead87b
commit ab0cce9eaa
56 changed files with 144 additions and 94 deletions

View File

@@ -5,7 +5,16 @@ namespace advss {
bool VerboseLoggingEnabled()
{
return GetSwitcher() && GetSwitcher()->verbose;
return GetSwitcher() &&
GetSwitcher()->logLevel == SwitcherData::LogLevel::VERBOSE;
}
bool ActionLoggingEnabled()
{
return GetSwitcher() &&
(GetSwitcher()->logLevel ==
SwitcherData::LogLevel::PRINT_ACTION ||
GetSwitcher()->logLevel == SwitcherData::LogLevel::VERBOSE);
}
} // namespace advss