(self, level, msg, args, exc_info=None, extra=None, stack_info=False,
             stacklevel=1)
Low-level logging routine which creates a LogRecord and then calls
        all the handlers of this logger to handle the record.
Low-level logging routine which creates a LogRecord and then calls
        all the handlers of this logger to handle the record.
Low - level logging routine which creates a LogRecord and then calls all the handlers of this logger to handle the record .
def _log(self, level, msg, args, exc_info=None, extra=None, stack_info=False,
             stacklevel=1):
        """
        Low-level logging routine which creates a LogRecord and then calls
        all the handlers of this logger to handle the record.
        """
        sinfo = None
        if _srcfile:
            #IronPython doesn't track Python frames, so findCaller raises an
            #exception on some versions of IronPython. We trap it here so that
            #IronPython can use logging.
            try:
                fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
            except ValueError: # pragma: no cover
                fn, lno, func = "(unknown file)", 0, "(unknown function)"
        else: # pragma: no cover
            fn, lno, func = "(unknown file)", 0, "(unknown function)"
        if exc_info:
            if isinstance(exc_info, BaseException):
                exc_info = (type(exc_info), exc_info, exc_info.__traceback__)
            elif not isinstance(exc_info, tuple):
                exc_info = sys.exc_info()
        record = self.makeRecord(self.name, level, fn, lno, msg, args,
                                 exc_info, func, extra, sinfo)
        self.handle(record)
def _log ( self , level , msg , args , exc_info = None , extra = None , stack_info = False , stacklevel = 1 ) : sinfo = None if _srcfile : #IronPython doesn't track Python frames, so findCaller raises an #exception on some versions of IronPython. We trap it here so that #IronPython can use logging. try : fn , lno , func , sinfo = self . findCaller ( stack_info , stacklevel ) except ValueError : # pragma: no cover fn , lno , func = "(unknown file)" , 0 , "(unknown function)" else : # pragma: no cover fn , lno , func = "(unknown file)" , 0 , "(unknown function)" if exc_info : if isinstance ( exc_info , BaseException ) : exc_info = ( type ( exc_info ) , exc_info , exc_info . __traceback__ ) elif not isinstance ( exc_info , tuple ) : exc_info = sys . exc_info ( ) record = self . makeRecord ( self . name , level , fn , lno , msg , args , exc_info , func , extra , sinfo ) self . handle ( record )