diff --git a/types/log4js.d.ts b/types/log4js.d.ts index bd3f343b..7606fcb7 100644 --- a/types/log4js.d.ts +++ b/types/log4js.d.ts @@ -335,7 +335,12 @@ export interface Appenders { } export interface AppenderModule { - configure: (config: Config, layouts: LayoutsParam) => AppenderFunction; + configure: ( + config?: Config, + layouts?: LayoutsParam, + findAppender?: () => AppenderFunction, + levels?: Levels + ) => AppenderFunction; } export type AppenderFunction = (loggingEvent: LoggingEvent) => void; @@ -395,7 +400,7 @@ export interface Configuration { } export interface Recording { - configure(loggingEvent: LoggingEvent): void; + configure(): AppenderFunction; replay(): LoggingEvent[]; playback(): LoggingEvent[]; reset(): void;