logs: add ISO timestamp to all log output

This commit is contained in:
Julien Calixte
2026-02-15 08:59:37 +01:00
parent 562a3b061f
commit efb78ff14e
3 changed files with 13 additions and 7 deletions

4
src/log.ts Normal file
View File

@@ -0,0 +1,4 @@
export function log(message: string, ...args: unknown[]) {
const timestamp = new Date().toISOString();
console.log(`${timestamp} ${message}`, ...args);
}