File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 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";
55declare 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments