in src/log.cpp [76:92]
void handleOptions(const char *options) {
auto level = static_cast<int>(LEVEL);
if (options && !std::string(options).empty()) {
try {
level = std::stoi(options);
}
catch (const std::invalid_argument &e) {
logger::error("Invalid log level argument. Expected value is integer between 0 and 5. \"ERROR\" level will be set");
}
}
if (NO_LOG <= level && level <= DEBUG) {
LEVEL = static_cast<LogLevel>(level);
} else {
logger::warn("Unexpected log level. Expected value between 0 and 5");
}
}