code: def get_level_fmt(self, level):
          
          key = None
          if level == logging.DEBUG:
              key = 'debug'
          elif level == logging.INFO:
              key = 'info'
          elif level == logging.WARNING:
              key = 'warning'
          elif level == logging.ERROR:
              key = 'error'
          elif level == logging.CRITICAL:
              key = 'critical'
          return self.overwrites.get(key, self.fmt)
docs: Get format for log level.