Skip to content

Commit

Permalink
type: corrected AppenderModule interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lamweili committed Jul 26, 2022
1 parent 0c37f40 commit 11d4c22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/log4js.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11d4c22

Please sign in to comment.