utility: added log levels for Loggers
This change allows setting log levels on loggers. The apps ConsoleLogger was switched to only logging warnings and errors the FileLogger still saves all types of logs.
This commit is contained in:
+3
-1
@@ -12,7 +12,9 @@
|
||||
|
||||
void init()
|
||||
{
|
||||
LogManager::getInstance()->addLogger(std::make_shared<ConsoleLogger>());
|
||||
std::shared_ptr<ConsoleLogger> consoleLogger = std::make_shared<ConsoleLogger>();
|
||||
consoleLogger->setLogLevel(Logger::LOG_WARNINGS | Logger::LOG_ERRORS);
|
||||
LogManager::getInstance()->addLogger(consoleLogger);
|
||||
LogManager::getInstance()->addLogger(std::make_shared<FileLogger>());
|
||||
|
||||
utility::loadFontsFromDirectory("data/fonts", ".otf");
|
||||
|
||||
Reference in New Issue
Block a user