Merge pull request #845 from xinbenlv/patch-1

Allow anything in the addLayout
This commit is contained in:
Gareth Jones 2019-05-02 08:48:25 +10:00 committed by GitHub
commit 04c385c201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
types/log4js.d.ts vendored
View File

@ -17,7 +17,7 @@ export function getLogger(category?: string): Logger;
export function configure(filename: string): Log4js;
export function configure(config: Configuration): Log4js;
export function addLayout(name: string, config: (a: any) => (logEvent: LoggingEvent) => string): void;
export function addLayout(name: string, config: (a: any) => (logEvent: LoggingEvent) => any): void;
export function connectLogger(logger: Logger, options: { format?: Format; level?: string; nolog?: any; statusRules?: any[] }): any; // express.Handler;