File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { LoggerLevel } from "../../constants";
5
5
declare global {
6
6
interface IAppenderOptions extends IDictionary < any > {
7
7
type : string ;
8
+ layout ?: Layout ;
8
9
}
9
10
10
11
interface ILoggerOptions {
@@ -26,9 +27,11 @@ declare global {
26
27
prepare ( item : any ) : string ;
27
28
}
28
29
29
-
30
- interface Log4JSEmitAppenderConfiguration extends Configuration {
30
+ interface Log4JSAppenderConfiguration extends Configuration {
31
31
layout : Layout ;
32
+ }
33
+
34
+ interface Log4JSEmitAppenderConfiguration extends Log4JSAppenderConfiguration {
32
35
emitter : EventEmitter ;
33
36
}
34
37
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function cliAppender(layout: Function) {
13
13
return appender ;
14
14
}
15
15
16
- function configure ( config : Log4JSEmitAppenderConfiguration , layouts : any ) {
16
+ function configure ( config : Log4JSAppenderConfiguration , layouts : any ) {
17
17
// the default layout for the appender
18
18
let layout = layouts . messagePassThroughLayout ;
19
19
You can’t perform that action at this time.
0 commit comments