def _ConfigureHandler(handler, logger, formatstr, debug_level):
  handler.setFormatter(logging.Formatter(formatstr))
  handler.setLevel(debug_level)
  logger.addHandler(handler)
Configure handler and add it to logger.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/gmacpyutil.py/_ConfigureHandler