Logs a whole message in emboldened blue text, 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.
(self, *args, trace=False, **kwargs)
| 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. |
| 1617 | |
| 1618 | Args: |
| 1619 | *args: Variable-length argument list to pass to the logger. |
| 1620 | trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to False. |
| 1621 | **kwargs: Arbitrary keyword arguments to pass to the logger. |
| 1622 | |
| 1623 | Examples: |
| 1624 | >>> self.hugeinfo("This is a huge informational message") |
| 1625 | >>> self.hugeinfo("This is a huge informational message with a trace", trace=True) |
| 1626 | """ |
| 1627 | self.log.hugeinfo(*args, extra={"scan_id": self.scan.id}, **kwargs) |
| 1628 | if trace: |
| 1629 | self.trace() |
| 1630 | |
| 1631 | def success(self, *args, trace=False, **kwargs): |
| 1632 | """Logs a success message, and optionally the stack trace of the most recent exception. |
no test coverage detected