Skip to content

Commit 7278daf

Browse files
committed
wip
1 parent 0822fb5 commit 7278daf

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ declare module 'werelogs' {
4949
warn(msg: string, data?: LogDictionary): void;
5050
error(msg: string, data?: LogDictionary): void;
5151
fatal(msg: string, data?: LogDictionary): void;
52-
end(msg?: string, data?: LogDictionary): EndLogger;
52+
end(): EndLogger;
5353
end(msg: string, data?: LogDictionary): void;
5454
errorEnd(msg: string, data?:LogDictionary): void;
5555
}

lib/RequestLogger.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,15 @@ class RequestLogger {
329329
return this.log('fatal', msg, data);
330330
}
331331

332+
/**
333+
* Logging function to write the last log entry for the given RequestLogger
334+
*
335+
* @returns {EndLogger} The EndLogger instance to continue logging.
336+
*/
337+
end() {
338+
return this.endLogger;
339+
}
340+
332341
/**
333342
* @version 1.1
334343
* @method RequestLogger#end
@@ -362,15 +371,6 @@ class RequestLogger {
362371
return this.log(this.endLevel, msg, data, true);
363372
}
364373

365-
/**
366-
* Logging function to write the last log entry for the given RequestLogger
367-
*
368-
* @returns {EndLogger} The EndLogger instance to continue logging.
369-
*/
370-
end() {
371-
return this.endLogger;
372-
}
373-
374374
/**
375375
* @deprecated since version 1.1
376376
*

0 commit comments

Comments
 (0)