MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / log

Method log

tools/python-3.11.9-amd64/Lib/logging/__init__.py:1544–1559  ·  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

1542 self.critical(msg, *args, **kwargs)
1543
1544 def log(self, level, msg, *args, **kwargs):
1545 """
1546 Log 'msg % args' with the integer severity 'level'.
1547
1548 To pass exception information, use the keyword argument exc_info with
1549 a true value, e.g.
1550
1551 logger.log(level, "We have a %s", "mysterious problem", exc_info=True)
1552 """
1553 if not isinstance(level, int):
1554 if raiseExceptions:
1555 raise TypeError("level must be an integer")
1556 else:
1557 return
1558 if self.isEnabledFor(level):
1559 self._log(level, msg, args, **kwargs)
1560
1561 def findCaller(self, stack_info=False, stacklevel=1):
1562 """

Callers 2

logMethod · 0.45
logFunction · 0.45

Calls 2

isEnabledForMethod · 0.95
_logMethod · 0.95

Tested by

no test coverage detected