Lines Matching refs:args

286     main information passed in is in msg and args, which are combined
287 using str(msg) % args to create the message field of the record. The
293 msg, args, exc_info, func=None, sinfo=None, **kwargs):
305 # Note that without the test for args[0], we get a problem because
307 # 'if self.args:'. If the event being logged is e.g. 'Value is %d'
308 # and if the passed arg fails 'if self.args:' then no formatting
314 # to hasattr(args[0], '__getitem__'). However, the docs on string
318 if (args and len(args) == 1 and isinstance(args[0], collections.abc.Mapping)
319 and args[0]):
320 args = args[0]
321 self.args = args
376 if self.args:
377 msg = msg % self.args
493 def __init__(self, *args, **kwargs):
494 super().__init__(*args, **kwargs)
1050 record.args))
1467 def debug(self, msg, *args, **kwargs):
1469 Log 'msg % args' with severity 'DEBUG'.
1477 self._log(DEBUG, msg, args, **kwargs)
1479 def info(self, msg, *args, **kwargs):
1481 Log 'msg % args' with severity 'INFO'.
1489 self._log(INFO, msg, args, **kwargs)
1491 def warning(self, msg, *args, **kwargs):
1493 Log 'msg % args' with severity 'WARNING'.
1501 self._log(WARNING, msg, args, **kwargs)
1503 def warn(self, msg, *args, **kwargs):
1506 self.warning(msg, *args, **kwargs)
1508 def error(self, msg, *args, **kwargs):
1510 Log 'msg % args' with severity 'ERROR'.
1518 self._log(ERROR, msg, args, **kwargs)
1520 def exception(self, msg, *args, exc_info=True, **kwargs):
1524 self.error(msg, *args, exc_info=exc_info, **kwargs)
1526 def critical(self, msg, *args, **kwargs):
1528 Log 'msg % args' with severity 'CRITICAL'.
1536 self._log(CRITICAL, msg, args, **kwargs)
1538 def fatal(self, msg, *args, **kwargs):
1542 self.critical(msg, *args, **kwargs)
1544 def log(self, level, msg, *args, **kwargs):
1546 Log 'msg % args' with the integer severity 'level'.
1559 self._log(level, msg, args, **kwargs)
1595 def makeRecord(self, name, level, fn, lno, msg, args, exc_info,
1601 rv = _logRecordFactory(name, level, fn, lno, msg, args, exc_info, func,
1610 def _log(self, level, msg, args, exc_info=None, extra=None, stack_info=False,
1632 record = self.makeRecord(self.name, level, fn, lno, msg, args,
1827 manipulate the message itself, the keyword args or both. Return
1839 def debug(self, msg, *args, **kwargs):
1843 self.log(DEBUG, msg, *args, **kwargs)
1845 def info(self, msg, *args, **kwargs):
1849 self.log(INFO, msg, *args, **kwargs)
1851 def warning(self, msg, *args, **kwargs):
1855 self.log(WARNING, msg, *args, **kwargs)
1857 def warn(self, msg, *args, **kwargs):
1860 self.warning(msg, *args, **kwargs)
1862 def error(self, msg, *args, **kwargs):
1866 self.log(ERROR, msg, *args, **kwargs)
1868 def exception(self, msg, *args, exc_info=True, **kwargs):
1872 self.log(ERROR, msg, *args, exc_info=exc_info, **kwargs)
1874 def critical(self, msg, *args, **kwargs):
1878 self.log(CRITICAL, msg, *args, **kwargs)
1880 def log(self, level, msg, *args, **kwargs):
1887 self.logger.log(level, msg, *args, **kwargs)
1913 def _log(self, level, msg, args, exc_info=None, extra=None, stack_info=False):
1920 args,
2091 def critical(msg, *args, **kwargs):
2099 root.critical(msg, *args, **kwargs)
2101 def fatal(msg, *args, **kwargs):
2105 critical(msg, *args, **kwargs)
2107 def error(msg, *args, **kwargs):
2115 root.error(msg, *args, **kwargs)
2117 def exception(msg, *args, exc_info=True, **kwargs):
2123 error(msg, *args, exc_info=exc_info, **kwargs)
2125 def warning(msg, *args, **kwargs):
2133 root.warning(msg, *args, **kwargs)
2135 def warn(msg, *args, **kwargs):
2138 warning(msg, *args, **kwargs)
2140 def info(msg, *args, **kwargs):
2148 root.info(msg, *args, **kwargs)
2150 def debug(msg, *args, **kwargs):
2158 root.debug(msg, *args, **kwargs)
2160 def log(level, msg, *args, **kwargs):
2162 Log 'msg % args' with the integer severity 'level' on the root logger. If
2168 root.log(level, msg, *args, **kwargs)