Skip to content

Commit 8b65272

Browse files
chore: use correct interfaces for appenders
1 parent 4f1d7a8 commit 8b65272

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/common/definitions/logger.d.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { LoggerLevel } from "../../constants";
55
declare global {
66
interface IAppenderOptions extends IDictionary<any> {
77
type: string;
8+
layout?: Layout;
89
}
910

1011
interface ILoggerOptions {
@@ -26,9 +27,11 @@ declare global {
2627
prepare(item: any): string;
2728
}
2829

29-
30-
interface Log4JSEmitAppenderConfiguration extends Configuration {
30+
interface Log4JSAppenderConfiguration extends Configuration {
3131
layout: Layout;
32+
}
33+
34+
interface Log4JSEmitAppenderConfiguration extends Log4JSAppenderConfiguration {
3235
emitter: EventEmitter;
3336
}
3437
}

lib/common/logger/appenders/cli-appender.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function cliAppender(layout: Function) {
1313
return appender;
1414
}
1515

16-
function configure(config: Log4JSEmitAppenderConfiguration, layouts: any) {
16+
function configure(config: Log4JSAppenderConfiguration, layouts: any) {
1717
// the default layout for the appender
1818
let layout = layouts.messagePassThroughLayout;
1919

0 commit comments

Comments
 (0)