VYBECODEDDDDDDDDD

This commit is contained in:
Anaïs Saraiva
2026-08-15 00:20:45 +02:00
parent 1a2c8aaf7c
commit 5f201cf725
23 changed files with 2263 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
export type LogLevel = "info" | "warn" | "error";
export function log(level: LogLevel, message: string): void {
const line = `[${new Date().toISOString()}] [${level}] ${message}`;
if (level === "error") {
console.error(line);
} else {
console.log(line);
}
}