Skip to content

Commit c24f7e1

Browse files
committed
Fix docs, fix #256
1 parent a080998 commit c24f7e1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ export class CustomLogger<LogObj> extends BaseLogger<LogObj> {
250250
/**
251251
* Logs a _CUSTOM_ message.
252252
* @param args - Multiple log attributes that should be logged.
253+
* @return LogObject with meta property, when log level is >= minLevel
253254
*/
254-
public custom(...args: unknown[]): LogObj & ILogObjMeta {
255+
public custom(...args: unknown[]): LogObj & ILogObjMeta | undefined {
255256
return super.log(8, "CUSTOM", ...args);
256257
}
257258

docs/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ export class CustomLogger<LogObj> extends BaseLogger<LogObj> {
250250
/**
251251
* Logs a _CUSTOM_ message.
252252
* @param args - Multiple log attributes that should be logged.
253+
* @return LogObject with meta property, when log level is >= minLevel
253254
*/
254-
public custom(...args: unknown[]): LogObj & ILogObjMeta {
255+
public custom(...args: unknown[]): LogObj & ILogObjMeta | undefined {
255256
return super.log(8, "CUSTOM", ...args);
256257
}
257258

0 commit comments

Comments
 (0)