fix: log levels order

Most important messages are the ones with the highest value

This is a fixup for commit c5327f74d4.
This commit is contained in:
Ignas Kiela 2023-05-23 12:09:15 +03:00 committed by Johann150
parent 296c40c5b4
commit 6b9a3259f5
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -12,11 +12,11 @@ type Domain = {
};
export const LEVELS = {
error: 0,
warning: 1,
success: 2,
info: 3,
debug: 4,
error: 5,
warning: 4,
success: 3,
info: 2,
debug: 1,
};
export type Level = LEVELS[keyof LEVELS];