Commit 55a3427 1 parent 5e5ca7d commit 55a3427 Copy full SHA for 55a3427
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,7 @@ async function loadConfigFromFile(
397
397
configFile?: string,
398
398
configRoot: string = process.cwd(),
399
399
logLevel?: LogLevel,
400
+ customLogger?: Logger,
400
401
): Promise<{
401
402
path: string
402
403
config: UserConfig
Original file line number Diff line number Diff line change @@ -459,6 +459,7 @@ export async function resolveConfig(
459
459
configFile ,
460
460
config . root ,
461
461
config . logLevel ,
462
+ config . customLogger ,
462
463
)
463
464
if ( loadResult ) {
464
465
config = mergeConfig ( loadResult . config , config )
@@ -963,6 +964,7 @@ export async function loadConfigFromFile(
963
964
configFile ?: string ,
964
965
configRoot : string = process . cwd ( ) ,
965
966
logLevel ?: LogLevel ,
967
+ customLogger ?: Logger ,
966
968
) : Promise < {
967
969
path : string
968
970
config : UserConfig
@@ -1016,9 +1018,11 @@ export async function loadConfigFromFile(
1016
1018
dependencies : bundled . dependencies ,
1017
1019
}
1018
1020
} catch ( e ) {
1019
- createLogger ( logLevel ) . error (
1021
+ createLogger ( logLevel , { customLogger } ) . error (
1020
1022
colors . red ( `failed to load config from ${ resolvedPath } ` ) ,
1021
- { error : e } ,
1023
+ {
1024
+ error : e ,
1025
+ } ,
1022
1026
)
1023
1027
throw e
1024
1028
}
You can’t perform that action at this time.
0 commit comments