old_contents: import logging
  
  
  def configure_argument_parser_for_logging(argument_parser):
      argument_parser.add_argument(
          '--quiet', '-q', dest='quietness', action='count', default=0,
          help='decrease logging level; stack as -qq')
      argument_parser.add_argument(
          '--verbose', '-v', dest='verbosity', action='count', default=0,
          help='increase logging level; stack as -vv')
  
  
  def configure_logging_from(args):
      configure_logging(args.verbosity - args.quietness)
  
  
  def configure_logging(intensity):
      if intensity == 0:
          logging_level = logging.INFO
      elif intensity < -1:
          logging_level = logging.CRITICAL
      elif intensity == -1:
          logging_level = logging.ERROR
      elif intensity == +1:
          logging_level = logging.WARNING
      elif intensity > +1:
          logging_level = logging.DEBUG
      logging.basicConfig(
          format='%(asctime)s %(name)s %(levelname)s %(message)s',
          datefmt='%Y-%m-%d %H:%M:%S',
          level=logging_level)
  
new_contents: import logging
  
  
  def configure_argument_parser_for_logging(argument_parser):
      argument_parser.add_argument(
          '--quiet', '-q', dest='quietness', action='count', default=0,
          help='decrease logging level; stack as -qq')
      argument_parser.add_argument(
          '--verbose', '-v', dest='verbosity', action='count', default=0,
          help='increase logging level; stack as -vv')
  
  
  def configure_logging_from(args):
      configure_logging(args.verbosity - args.quietness)
  
  
  def configure_logging(intensity):
      if intensity > 1:
          logging_level = logging.DEBUG
      elif intensity == 1:
          logging_level = logging.INFO
      elif intensity == 0:
          logging_level = logging.WARNING
      elif intensity == -1:
          logging_level = logging.ERROR
      elif intensity < -1:
          logging_level = logging.CRITICAL
      logging.basicConfig(
          format='%(asctime)s %(name)s %(levelname)s %(message)s',
          datefmt='%Y-%m-%d %H:%M:%S',
          level=logging_level)
  
subject: Fix log levels