(handler, logger, formatstr, debug_level)
Configure handler and add it to logger.

  Args:
    handler: logging handler to be configured
    logger: logger to add handler to
    formatstr: log format string
    debug_level: logging level to set
Configure handler and add it to logger.
Configure handler and add it to logger .
def _ConfigureHandler(handler, logger, formatstr, debug_level):
  """Configure handler and add it to logger.

  Args:
    handler: logging handler to be configured
    logger: logger to add handler to
    formatstr: log format string
    debug_level: logging level to set
  """
  handler.setFormatter(logging.Formatter(formatstr))
  handler.setLevel(debug_level)
  logger.addHandler(handler)
def _ConfigureHandler ( handler , logger , formatstr , debug_level ) : handler . setFormatter ( logging . Formatter ( formatstr ) ) handler . setLevel ( debug_level ) logger . addHandler ( handler )