mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
Add debug logging capability to Logger class
This commit is contained in:
parent
03e1545ebd
commit
2cbabe7a67
@ -36,6 +36,13 @@ export default class logger {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static debug(message: LogBody): void {
|
||||||
|
this.emit({
|
||||||
|
body: message,
|
||||||
|
severityNumber: SeverityNumber.DEBUG,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
public static emit(data: {
|
public static emit(data: {
|
||||||
body: LogBody;
|
body: LogBody;
|
||||||
severityNumber: SeverityNumber;
|
severityNumber: SeverityNumber;
|
||||||
|
Loading…
Reference in New Issue
Block a user