def configure(self, **kwargs):
for kwarg in kwargs:<EOL><INDENT>value = kwargs[kwarg]<EOL>if kwarg == '<STR_LIT>':<EOL><INDENT>self.set_level(value)<EOL><DEDENT>elif kwarg == '<STR_LIT>':<EOL><INDENT>self.default_level = level_map.get(value, value)<EOL><DEDENT>elif kwarg == '<STR_LIT>':<EOL><INDENT>self.handlers[<NUM_LIT:0>].formatter.datefmt = value<EOL><DEDENT>elif kwarg == '<STR_LIT>':<EOL><INDENT>self.handlers[<NUM_LIT:0>].formatter._style._fmt = value<EOL><DEDENT>elif kwarg == '<STR_LIT>':<EOL><INDENT>global fg, fx, _CHOSEN_PALETTE<EOL>self.handlers[<NUM_LIT:0>].stream = value<EOL>fg, fx, _CHOSEN_PALETTE = _find_palettes(value)<EOL><DEDENT>elif kwarg == '<STR_LIT>':<EOL><INDENT>if type(value) is str:<EOL><INDENT>theme = _themes[value]<EOL>if value == '<STR_LIT>':<EOL><INDENT>fmtr =  logging.Formatter(style='<STR_LIT:{>', **theme)<EOL><DEDENT>elif value == '<STR_LIT>':<EOL><INDENT>fmtr =  _JSONFormatter(**theme)<EOL><DEDENT>else:<EOL><INDENT>fmtr =  _ColorFormatter(tty=_is_a_tty, **theme)<EOL><DEDENT><DEDENT>elif type(value) is dict:<EOL><INDENT>if '<STR_LIT>' in value or '<STR_LIT>' in value:<EOL><INDENT>fmtr =  _ColorFormatter(tty=_is_a_tty, **theme)<EOL><DEDENT>else:<EOL><INDENT>fmtr =  logging.Formatter(style='<STR_LIT:{>', **theme)<EOL><DEDENT><DEDENT>self.handlers[<NUM_LIT:0>].setFormatter(fmtr)<EOL><DEDENT>elif kwarg == '<STR_LIT>':<EOL><INDENT>if type(value) is str:<EOL><INDENT>value = _icons[value]<EOL><DEDENT>self.handlers[<NUM_LIT:0>].formatter._theme_icons = value<EOL><DEDENT>elif kwarg == '<STR_LIT>':<EOL><INDENT>if type(value) is str:<EOL><INDENT>value = _styles[value]<EOL><DEDENT>self.handlers[<NUM_LIT:0>].formatter._theme_style = value<EOL><DEDENT>elif kwarg == '<STR_LIT>':<EOL><INDENT>try:<EOL><INDENT>self.handlers[<NUM_LIT:0>].formatter.set_lexer(value)<EOL><DEDENT>except AttributeError as err:<EOL><INDENT>self.error('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise NameError('<STR_LIT>' % kwarg)<EOL><DEDENT><DEDENT>
Convenience function to set a number of parameters on this logger
            and associated handlers and formatters.