Add debug logging capability to Logger class

This commit is contained in:
Simon Larsen 2024-04-05 13:23:03 +01:00
parent 03e1545ebd
commit 2cbabe7a67
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -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: {
body: LogBody;
severityNumber: SeverityNumber;