'Log \'msg % args\' with severity \'WARNING\'.
To pass exception information, use the keyword argument exc_info with
a true value, e.g.
logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)'

def warning(self, msg, *args, **kwargs):

    if self.isEnabledFor(WARNING):
        self._log(WARNING, msg, args, **kwargs)
