logs: add ISO timestamp to all log output
This commit is contained in:
4
src/log.ts
Normal file
4
src/log.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function log(message: string, ...args: unknown[]) {
|
||||
const timestamp = new Date().toISOString();
|
||||
console.log(`${timestamp} ${message}`, ...args);
|
||||
}
|
||||
Reference in New Issue
Block a user