docs: def _configure_logging(verbose=False, debug=False):
      """Configure the log global, message format, and verbosity settings."""
      overall_level = logging.DEBUG if debug else logging.INFO
      logging.basicConfig(
          format=('{levelname[0]}{asctime}.{msecs:03.0f} {thread} '
                  '{filename}:{lineno}] {message}'),
          datefmt='%m%d %H:%M:%S',
          style='{',
          level=overall_level)
      global log
      log = logging.getLogger('portserver')
      # The verbosity controls our loggers logging level, not the global
      # one above. This avoids debug messages from libraries such as asyncio.
      log.setLevel(logging.DEBUG if verbose else overall_level)