first commit
All checks were successful
Code quality checks / biome (push) Successful in 7s

This commit is contained in:
creations 2025-05-24 09:42:42 -04:00
commit d554599768
Signed by: creations
GPG key ID: 8F553AA4320FC711
11 changed files with 334 additions and 0 deletions

32
types/index.d.ts vendored Normal file
View file

@ -0,0 +1,32 @@
const LogLevelValue = {
trace: 10,
debug: 20,
info: 30,
warn: 40,
error: 50,
fatal: 60,
silent: 70,
} as const;
type LogLevelValue = typeof LogLevelValue[keyof typeof LogLevelValue];
type LogLevel = keyof typeof LogLevelValue;
type LoggerConfig = {
directory?: string;
level?: LogLevel;
disableFile?: boolean;
rotate?: boolean;
maxSizeMB?: number;
maxFiles?: number;
console?: boolean;
consoleColor?: boolean;
dateFormat?: string;
timezone?: string;
silent?: boolean;
pattern?: string;
};