code: def _configure_common(
              self,
              prefix,
              fallback_level,
              fallback_format,
              handler_name,
              handler,
              custom_args=''
      ):
          log_level = self.config.get_option(
              'LOGGING', prefix + 'log_level',
              None, fallback_level
          )
          log_format_name = self.config.get_option(
              'LOGGING', prefix + 'log_format',
              None, None
          )
          log_format = ReportingFormats[log_format_name].value if log_format_name else fallback_format
          log_format = log_format.format(custom_args=custom_args)
          formatter = logging.Formatter(log_format)
          handler.setFormatter(formatter)
          handler.setLevel(log_level)
          self.logger.addHandler(handler)
          if not self.logger.isEnabledFor(logging.getLevelName(log_level)):
              self.logger.setLevel(log_level)
          self.log_info.append(handler_name + ' @ ' + str(log_level))
          self.log_handlers.append(handler)