mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 09:54:54 -05:00
27 lines
540 B
C++
27 lines
540 B
C++
#include "log-helper.hpp"
|
|
#include "switcher-data.hpp"
|
|
|
|
namespace advss {
|
|
|
|
bool VerboseLoggingEnabled()
|
|
{
|
|
return GetSwitcher() &&
|
|
GetSwitcher()->logLevel == SwitcherData::LogLevel::VERBOSE;
|
|
}
|
|
|
|
bool ActionLoggingEnabled()
|
|
{
|
|
return GetSwitcher() &&
|
|
(GetSwitcher()->logLevel == SwitcherData::LogLevel::LOG_ACTION ||
|
|
VerboseLoggingEnabled());
|
|
}
|
|
|
|
bool MacroLoggingEnabled()
|
|
{
|
|
return GetSwitcher() &&
|
|
(GetSwitcher()->logLevel == SwitcherData::LogLevel::LOG_MACRO ||
|
|
ActionLoggingEnabled());
|
|
}
|
|
|
|
} // namespace advss
|