docs: def configure(self, **kwargs):
          ''' Convenience function to set a number of parameters on this logger
              and associated handlers and formatters.
          '''
          for kwarg in kwargs:
              value = kwargs[kwarg]
  
              if kwarg == 'level':
                  self.set_level(value)
  
              elif kwarg == 'default_level':
                  self.default_level = level_map.get(value, value)
  
              elif kwarg == 'datefmt':
                  self.handlers[0].formatter.datefmt = value
  
              elif kwarg == 'msgfmt':
                  self.handlers[0].formatter._style._fmt = value
  
              elif kwarg == 'stream':
                  global fg, fx, _CHOSEN_PALETTE
                  self.handlers[0].stream = value
                  fg, fx, _CHOSEN_PALETTE = _find_palettes(value)
  
              elif kwarg == 'theme':
                  if type(value) is str:
                      theme = _themes[value]
                      if value == 'plain':
                          fmtr =  logging.Formatter(style='{', **theme)
                      elif value == 'json':
                          fmtr =  _JSONFormatter(**theme)
                      else:
                          fmtr =  _ColorFormatter(tty=_is_a_tty, **theme)
                  elif type(value) is dict:
                      if 'style' in value or 'icons' in value:
                          fmtr =  _ColorFormatter(tty=_is_a_tty, **theme)
                      else:
                          fmtr =  logging.Formatter(style='{', **theme)
                  self.handlers[0].setFormatter(fmtr)
  
              elif kwarg == 'icons':
                  if type(value) is str:
                      value = _icons[value]
                  self.handlers[0].formatter._theme_icons = value
  
              elif kwarg == 'style':
                  if type(value) is str:
                      value = _styles[value]
                  self.handlers[0].formatter._theme_style = value
  
              elif kwarg == 'lexer':
                  try:
                      self.handlers[0].formatter.set_lexer(value)
                  except AttributeError as err:
                      self.error('lexer: ColorFormatter not available.')
              else:
                  raise NameError('unknown keyword argument: %s' % kwarg)