Logs informational messages and optionally the stack trace of the most recent exception. Args: *args: Variable-length argument list to pass to the logger. trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to False.
(self, *args, trace=False, **kwargs)
| 1597 | self.trace() |
| 1598 | |
| 1599 | def info(self, *args, trace=False, **kwargs): |
| 1600 | """Logs informational messages and optionally the stack trace of the most recent exception. |
| 1601 | |
| 1602 | Args: |
| 1603 | *args: Variable-length argument list to pass to the logger. |
| 1604 | trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to False. |
| 1605 | **kwargs: Arbitrary keyword arguments to pass to the logger. |
| 1606 | |
| 1607 | Examples: |
| 1608 | >>> self.info("This is an informational message") |
| 1609 | >>> self.info("This is an informational message with a trace", trace=True) |
| 1610 | """ |
| 1611 | self.log.info(*args, extra={"scan_id": self.scan.id}, **kwargs) |
| 1612 | if trace: |
| 1613 | self.trace() |
| 1614 | |
| 1615 | def hugeinfo(self, *args, trace=False, **kwargs): |
| 1616 | """Logs a whole message in emboldened blue text, and optionally the stack trace of the most recent exception. |