Add logging functions

This commit is contained in:
Bill 2022-03-21 01:53:14 -04:00
parent 3884ada584
commit e7dcd1da19

View File

@ -56,6 +56,16 @@ export class NitroLogger implements INitroLogger
}
}
public static error(message: string, name: string = 'Nitro'): void
{
return this.log(message, name, 'error');
}
public static warn(message: string, name: string = 'Nitro'): void
{
return this.log(message, name, 'warn');
}
public static getTimestamp(): string
{
const now = Date.now();