def basicConfig(**kwargs):
logging.basicConfig(**kwargs)<EOL>logging._acquireLock()<EOL>try:<EOL><INDENT>stream = logging.root.handlers[<NUM_LIT:0>]<EOL>stream.setFormatter(<EOL>ColoredFormatter(<EOL>fmt=kwargs.get('<STR_LIT>', BASIC_FORMAT),<EOL>datefmt=kwargs.get('<STR_LIT>', None)))<EOL><DEDENT>finally:<EOL><INDENT>logging._releaseLock()<EOL><DEDENT>
Call ``logging.basicConfig`` and override the formatter it creates.