1
0
mirror of https://git.hibas.dev/OpenServer/NodeLogging.git synced 2025-07-03 05:31:23 +00:00

Updating dependencies and increasing support of new adapterset architecture

This commit is contained in:
Fabian Stamm
2020-04-11 17:41:28 +02:00
parent 6f002456f6
commit 558ddad800
3 changed files with 12 additions and 6 deletions

View File

@ -47,6 +47,12 @@ export class LoggingBase extends LoggingBaseOriginal {
}
}
protected postGetChild(child: LoggingBase) {
child.getCurrentTime = this.getCurrentTime.bind(child);
child.getTimeDiff = this.getTimeDiff.bind(child);
child.postGetChild = this.postGetChild.bind(child);
}
protected getCurrentTime() {
if (process.hrtime.bigint) {
return process.hrtime.bigint();