Skip to content

Commit 57efc9b

Browse files
author
Matija Petrunic
committed
Change ILogger interface logs to have first param as msg
1 parent b486270 commit 57efc9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/logger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import debug from "debug";
22

33
export interface ILogger<TReturn = void> {
4-
info(...params: unknown[]): TReturn;
5-
debug(...params: unknown[]): TReturn;
6-
error(...params: unknown[]): TReturn;
4+
info(msg: string, ...params: unknown[]): TReturn;
5+
debug(msg: string, ...params: unknown[]): TReturn;
6+
error(msg: string, ...params: unknown[]): TReturn;
77
}
88

99
export class DefaultLogger implements ILogger {

0 commit comments

Comments
 (0)