mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 10:45:58 +01:00
added log level info
This commit is contained in:
parent
8de8f6667e
commit
316b49eee2
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,8 @@ enum LogLevel {
|
||||||
LOG = 0,
|
LOG = 0,
|
||||||
WARN,
|
WARN,
|
||||||
ERR,
|
ERR,
|
||||||
CRIT
|
CRIT,
|
||||||
|
INFO
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace Debug {
|
namespace Debug {
|
||||||
|
|
Loading…
Reference in a new issue