change timestap logging style

This commit is contained in:
2025-11-01 11:59:54 -05:00
parent f0f526e5c5
commit 40d76aae80
+1 -1
View File
@@ -19,7 +19,7 @@ export const log = (...args: any[]) => {
const LOG_LEVEL = process.env.UNICORD_LOG_LEVEL?.toLocaleLowerCase(); const LOG_LEVEL = process.env.UNICORD_LOG_LEVEL?.toLocaleLowerCase();
if (LOG_LEVEL === 'debug') { if (LOG_LEVEL === 'debug') {
const timestamp = `\x1b[37m[${new Date().toLocaleString()}]\x1b[0m`; const timestamp = `\x1b[37m[${new Date().toLocaleTimeString()}]\x1b[0m`;
const prefix = `\x1b[35m[unicord]`; const prefix = `\x1b[35m[unicord]`;
console.log(`${timestamp} ${prefix} \x1b[0m`, ...args); console.log(`${timestamp} ${prefix} \x1b[0m`, ...args);
} }