MCPcopy Index your code
hub / github.com/RustPython/RustPython / log

Method log

Lib/logging/__init__.py:1577–1592  ·  view source on GitHub ↗

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=True)

(self, level, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

1575 self.critical(msg, *args, **kwargs)
1576
1577 def log(self, level, msg, *args, **kwargs):
1578 """
1579 Log 'msg % args' with the integer severity 'level'.
1580
1581 To pass exception information, use the keyword argument exc_info with
1582 a true value, e.g.
1583
1584 logger.log(level, "We have a %s", "mysterious problem", exc_info=True)
1585 """
1586 if not isinstance(level, int):
1587 if raiseExceptions:
1588 raise TypeError("level must be an integer")
1589 else:
1590 return
1591 if self.isEnabledFor(level):
1592 self._log(level, msg, args, **kwargs)
1593
1594 def findCaller(self, stack_info=False, stacklevel=1):
1595 """

Callers 9

runJSFunction · 0.45
readPromptsFunction · 0.45
logMethod · 0.45
logFunction · 0.45
sub_debugFunction · 0.45
debugFunction · 0.45
infoFunction · 0.45
_warnFunction · 0.45
sub_warningFunction · 0.45

Calls 3

isEnabledForMethod · 0.95
_logMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected