code: def level_name(self, level=None):
          
          if level is None:
              level = self._log_level
          return self.LEVELS[level]
docs: Return the name of the given level value.
  
          If level is None, return the name of the current level.
  
          Parameters
          ----------
          level : logging level constant
              The logging level constant whose name to retrieve.
  
          Returns
          -------
          level_name : str
              The name of the logging level.