improve antdedit output log display

This commit is contained in:
lxsang
2021-12-06 12:30:26 +01:00
parent 98335a2a51
commit 0a78663551
8 changed files with 18 additions and 5 deletions

View File

@ -1465,7 +1465,18 @@ namespace OS {
* @memberof Logger
*/
print(s: string | FormattedString): void {
this.log("info", s, false);
if(s.match(/warn/i))
{
this.log("warn", s, false);
}
else if(s.match(/error/i))
{
this.log("error", s, false);
}
else
{
this.log("info", s, false);
}
}
/**