This commit is contained in:
daydreamer-json
2026-01-22 18:48:17 +09:00
commit 9a3e037eba
39 changed files with 3346 additions and 0 deletions

15
src/types/LogLevels.ts Normal file
View File

@@ -0,0 +1,15 @@
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 };