mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-22 23:50:52 +01:00
Add logging functions
This commit is contained in:
parent
3884ada584
commit
e7dcd1da19
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user