change warn color to orange

This commit is contained in:
jusax23 2023-04-06 23:17:27 +02:00
parent 39475fdb47
commit 4ffb09e2b8
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -37,10 +37,11 @@ export const warn = (name: string, ...args: any[]) => {
let dateString = (new Date()).toLocaleString(); let dateString = (new Date()).toLocaleString();
console.warn( console.warn(
"\x1b[33m%s\x1b[0m" + "\x1b[33m%s\x1b[0m" +
"\x1b[1m\x1b[36m%s\x1b[0m", "\x1b[1m\x1b[48;5;208m%s\x1b[0m\x1b[48;5;208m",
dateString, dateString+" ",
`[${name}]:`, `[${name}]:`,
...args ...args,
"\x1b[0m"
); );
if (global.provideLog != 0) logList.push([logID++, "warn", dateString, name, args]); if (global.provideLog != 0) logList.push([logID++, "warn", dateString, name, args]);
}; };