function adaptCLI(cliConfig) {
  const result = {};

  if (cliConfig.loglevel !== undefined) {
    result.level = castLevel(cliConfig.loglevel);
  }

  if (cliConfig.useCustomLogger !== undefined) {
    result.overrideConsole = cliConfig.useCustomLogger;
  }

  if (cliConfig.noColor) {
    result.options = { colors: false };
  }

  return result;
}
@param {Partial<Detox.DetoxLoggerConfig>} acc
@param config