add: a logger utils

This commit is contained in:
2026-04-24 14:02:16 +02:00
parent 38f9f087d1
commit 8c84663472
4 changed files with 146 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
export type LogLevel = "debug" | "info" | "warn" | "error";
export type LogContext = Record<string, unknown>;
export interface LogEntry {
timestamp: string;
level: LogLevel;
scope: string;
message: string;
context?: LogContext;
}
export interface LoggerConfig {
minLevel: LogLevel;
}