mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-02-17 02:22:36 +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
|
public static getTimestamp(): string
|
||||||
{
|
{
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user