old_contents: import logging.config
  import sys
  import types
  
  LOGGING_CONFIG = {
      'disable_existing_loggers': False,
      'formatters': {
          'standard': {
              'format': '%(asctime)s - %(levelname)s - %(message)s',
              'datefmt': '[%Y-%m-%dT%H:%M:%S]',
          },
      },
      'handlers': {
          'file': {
              'class': 'logging.FileHandler',
              'filename': 'perfrunner.log',
              'formatter': 'standard',
              'mode': 'w',
          },
          'stream': {
              'class': 'logging.StreamHandler',
              'formatter': 'standard',
          },
      },
      'loggers': {
          '': {
              'handlers': ['stream', 'file'],
              'level': logging.INFO,
              'propagate': True,
          },
          'paramiko': {
              'level': logging.WARNING,
          },
          'requests': {
              'level': logging.ERROR,
          },
          'urllib3': {
              'level': logging.WARNING,
          },
      },
      'version': 1,
  }
  
  
  def error(self, msg, *args, **kwargs):
      self.error(msg, *args, **kwargs)
      sys.exit(1)
  
  
  logging.config.dictConfig(LOGGING_CONFIG)
  
  logger = logging.getLogger()
  
  logger.interrupt = types.MethodType(error, logger)
  
new_contents: import logging.config
  import sys
  import types
  
  LOGGING_CONFIG = {
      'disable_existing_loggers': False,
      'formatters': {
          'standard': {
              'format': '%(asctime)s - %(levelname)s - %(message)s',
              'datefmt': '%Y-%m-%dT%H:%M:%S',
          },
      },
      'handlers': {
          'file': {
              'class': 'logging.FileHandler',
              'filename': 'perfrunner.log',
              'formatter': 'standard',
              'mode': 'w',
          },
          'stream': {
              'class': 'logging.StreamHandler',
              'formatter': 'standard',
          },
      },
      'loggers': {
          '': {
              'handlers': ['stream', 'file'],
              'level': logging.INFO,
              'propagate': True,
          },
          'paramiko': {
              'level': logging.WARNING,
          },
          'requests': {
              'level': logging.ERROR,
          },
          'urllib3': {
              'level': logging.WARNING,
          },
      },
      'version': 1,
  }
  
  
  def error(self, msg, *args, **kwargs):
      self.error(msg, *args, **kwargs)
      sys.exit(1)
  
  
  logging.config.dictConfig(LOGGING_CONFIG)
  
  logger = logging.getLogger()
  
  logger.interrupt = types.MethodType(error, logger)
  
subject: Remove brackets around data and time in logs