Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,15 @@ export function concurrently(
// keep in the list of commands to hide only strings with some length.
// This might happen through the CLI when no `--hide` argument is specified, for example.
const hide = _.castArray(options.hide).filter((id) => id || id === 0);
const logger = new Logger({
hide,
prefixFormat: options.prefix,
commandLength: options.prefixLength,
raw: options.raw,
timestampFormat: options.timestampFormat,
});
const logger =
options.logger ||
new Logger({
hide,
prefixFormat: options.prefix,
commandLength: options.prefixLength,
raw: options.raw,
timestampFormat: options.timestampFormat,
});

if (options.prefixColors === false) {
logger.toggleColors(false);
Expand Down