mirror of
https://github.com/daydreamer-json/ak-endfield-api-archive.git
synced 2026-05-07 14:13:41 +02:00
16 lines
362 B
TypeScript
16 lines
362 B
TypeScript
const LOG_LEVELS = {
|
|
0: 'trace',
|
|
1: 'debug',
|
|
2: 'info',
|
|
3: 'warn',
|
|
4: 'error',
|
|
5: 'fatal',
|
|
} as const;
|
|
const LOG_LEVELS_NUM = [0, 1, 2, 3, 4, 5] as const;
|
|
|
|
type LogLevelNumber = keyof typeof LOG_LEVELS;
|
|
type LogLevelString = (typeof LOG_LEVELS)[LogLevelNumber];
|
|
|
|
export type { LogLevelNumber, LogLevelString };
|
|
export { LOG_LEVELS, LOG_LEVELS_NUM };
|