File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 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 {
237237 logFormatter : this . getLogFormatter ( ) ,
238238 } ;
239239 const parentsPowertoolsLogData = this . getPowertoolLogData ( ) ;
240- const childLogger = new Logger (
240+ const childLogger = this . createLogger (
241241 merge ( parentsOptions , parentsPowertoolsLogData , options )
242242 ) ;
243243
@@ -554,6 +554,16 @@ class Logger extends Utility implements ClassThatLogs {
554554 this . processLogItem ( 16 , input , extraInput ) ;
555555 }
556556
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+
557567 /**
558568 * Decides whether the current log item should be printed or not.
559569 *
You can’t perform that action at this time.
0 commit comments