From 340fafb7494b8cb86982420ada506d4596c1f085 Mon Sep 17 00:00:00 2001 From: leak4mk0 Date: Sun, 12 May 2019 09:22:40 +0900 Subject: [PATCH] Fix type definition. --- types/log4js.d.ts | 2 +- types/test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/log4js.d.ts b/types/log4js.d.ts index e54a7cc..d6df357 100644 --- a/types/log4js.d.ts +++ b/types/log4js.d.ts @@ -19,7 +19,7 @@ export function configure(config: Configuration): Log4js; 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; +export function connectLogger(logger: Logger, options: { format?: Format; level?: string; nolog?: any; statusRules?: any[], context?: boolean }): any; // express.Handler; export const levels: Levels; diff --git a/types/test.ts b/types/test.ts index 26d1888..918ffca 100644 --- a/types/test.ts +++ b/types/test.ts @@ -123,7 +123,8 @@ const level: log4js.Level = levels.getLevel('info'); log4js.connectLogger(logger1, { format: ':x, :y', - level: 'info' + level: 'info', + context: true }); log4js.connectLogger(logger2, {