mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
Merge pull request #1304 from log4js-node/1292-inconsistency-regarding-configure-signature-of-appendermodule-with-typescript
type: corrected AppenderModule interface and Recording interface
This commit is contained in:
commit
96e305a8eb
9
types/log4js.d.ts
vendored
9
types/log4js.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user