'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)'

def log(self, level, msg, *args, **kwargs):

    if (not isinstance(level, int)):
        if raiseExceptions:
            raise TypeError('level    must    be    an    integer')
        else:
            return
    if self.isEnabledFor(level):
        self._log(level, msg, args, **kwargs)
