Merge pull request #1177 from log4js-node/fixes-logger-constructor-types

fix(types): Logger constructor
This commit is contained in:
Lam Wei Li 2022-01-27 23:04:21 +08:00 committed by GitHub
commit 2d52eb484b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
types/log4js.d.ts vendored
View File

@ -338,10 +338,10 @@ export interface Recording {
}
export class Logger {
new(dispatch: Function, name: string): Logger;
constructor(name: string);
readonly category: string;
level: Level | string;
readonly category: string;
level: Level | string;
log(level: Level | string, ...args: any[]): void;