def CreateGsutilLogger(command_name):
  log = logging.getLogger(command_name)
  log.propagate = False
  log.setLevel(logging.root.level)
  log_handler = GsutilStreamHandler()
  log_handler.setFormatter(logging.Formatter('%(message)s'))
  # Commands that call other commands (like mv) would cause log handlers to be
  # added more than once, so avoid adding if one is already present.
  if not log.handlers:
    log.addHandler(log_handler)
  return log
Type: Flow or Auxiliary
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/command.py/CreateGsutilLogger--crossover with--dataset/ETHPy150Open JamesPHoughton/pysd/tests/test-models-master/tests/input_functions/test_inputs.py/final_time