change warn color to orange
This commit is contained in:
parent
39475fdb47
commit
4ffb09e2b8
1 changed files with 5 additions and 4 deletions
|
@ -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]);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue