added log level info

This commit is contained in:
vaxerski 2022-06-25 20:50:29 +02:00
parent 8de8f6667e
commit 316b49eee2
2 changed files with 5 additions and 1 deletions

View file

@ -31,6 +31,9 @@ void Debug::log(LogLevel level, const char* fmt, ...) {
case CRIT: case CRIT:
ofs << "[CRITICAL] "; ofs << "[CRITICAL] ";
break; break;
case INFO:
ofs << "[INFO] ";
break;
default: default:
break; break;
} }

View file

@ -8,7 +8,8 @@ enum LogLevel {
LOG = 0, LOG = 0,
WARN, WARN,
ERR, ERR,
CRIT CRIT,
INFO
}; };
namespace Debug { namespace Debug {