File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,15 @@ export function concurrently(
113
113
// keep in the list of commands to hide only strings with some length.
114
114
// This might happen through the CLI when no `--hide` argument is specified, for example.
115
115
const hide = _ . castArray ( options . hide ) . filter ( ( id ) => id || id === 0 ) ;
116
- const logger = new Logger ( {
117
- hide,
118
- prefixFormat : options . prefix ,
119
- commandLength : options . prefixLength ,
120
- raw : options . raw ,
121
- timestampFormat : options . timestampFormat ,
122
- } ) ;
116
+ const logger =
117
+ options . logger ||
118
+ new Logger ( {
119
+ hide,
120
+ prefixFormat : options . prefix ,
121
+ commandLength : options . prefixLength ,
122
+ raw : options . raw ,
123
+ timestampFormat : options . timestampFormat ,
124
+ } ) ;
123
125
124
126
if ( options . prefixColors === false ) {
125
127
logger . toggleColors ( false ) ;
You can’t perform that action at this time.
0 commit comments