diff --git a/src/sys/log.ts b/src/sys/log.ts index 3be1d6d..66bd3d2 100644 --- a/src/sys/log.ts +++ b/src/sys/log.ts @@ -37,10 +37,11 @@ export const warn = (name: string, ...args: any[]) => { let dateString = (new Date()).toLocaleString(); console.warn( "\x1b[33m%s\x1b[0m" + - "\x1b[1m\x1b[36m%s\x1b[0m", - dateString, - ` [${name}]:`, - ...args + "\x1b[1m\x1b[48;5;208m%s\x1b[0m\x1b[48;5;208m", + dateString+" ", + `[${name}]:`, + ...args, + "\x1b[0m" ); if (global.provideLog != 0) logList.push([logID++, "warn", dateString, name, args]); };