log¶ log(level, msg, *args, **kwargs)[source]¶ Log âmsg % argsâ with the integer severity âlevelâ. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.log(level, âWe have a %sâ, âmysterious problemâ, exc_info=1)