File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ class Logger extends Utility implements ClassThatLogs {
237
237
logFormatter : this . getLogFormatter ( ) ,
238
238
} ;
239
239
const parentsPowertoolsLogData = this . getPowertoolLogData ( ) ;
240
- const childLogger = new Logger (
240
+ const childLogger = this . createLogger (
241
241
merge ( parentsOptions , parentsPowertoolsLogData , options )
242
242
) ;
243
243
@@ -554,6 +554,16 @@ class Logger extends Utility implements ClassThatLogs {
554
554
this . processLogItem ( 16 , input , extraInput ) ;
555
555
}
556
556
557
+ /**
558
+ * Creates a new Logger instance.
559
+ *
560
+ * @param {ConstructorOptions } [options]
561
+ * @returns {Logger }
562
+ */
563
+ protected createLogger ( options ?: ConstructorOptions ) : Logger {
564
+ return new Logger ( options ) ;
565
+ }
566
+
557
567
/**
558
568
* Decides whether the current log item should be printed or not.
559
569
*
You can’t perform that action at this time.
0 commit comments