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

Method error

tools/python-3.11.9-amd64/Lib/logging/__init__.py:1508–1518  ·  view source on GitHub ↗

Log 'msg % args' with severity 'ERROR'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.error("Houston, we have a %s", "major problem", exc_info=True)

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

Source from the content-addressed store, hash-verified

1506 self.warning(msg, *args, **kwargs)
1507
1508 def error(self, msg, *args, **kwargs):
1509 """
1510 Log 'msg % args' with severity 'ERROR'.
1511
1512 To pass exception information, use the keyword argument exc_info with
1513 a true value, e.g.
1514
1515 logger.error("Houston, we have a %s", "major problem", exc_info=True)
1516 """
1517 if self.isEnabledFor(ERROR):
1518 self._log(ERROR, msg, args, **kwargs)
1519
1520 def exception(self, msg, *args, exc_info=True, **kwargs):
1521 """

Callers 3

exceptionMethod · 0.95
errorFunction · 0.45
log_errorMethod · 0.45

Calls 2

isEnabledForMethod · 0.95
_logMethod · 0.95

Tested by

no test coverage detected