Logs a whole message in emboldened green 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)
| 1645 | self.trace() |
| 1646 | |
| 1647 | def hugesuccess(self, *args, trace=False, **kwargs): |
| 1648 | """Logs a whole message in emboldened green text, and optionally the stack trace of the most recent exception. |
| 1649 | |
| 1650 | Args: |
| 1651 | *args: Variable-length argument list to pass to the logger. |
| 1652 | trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to False. |
| 1653 | **kwargs: Arbitrary keyword arguments to pass to the logger. |
| 1654 | |
| 1655 | Examples: |
| 1656 | >>> self.hugesuccess("This is a huge success message") |
| 1657 | >>> self.hugesuccess("This is a huge success message with a trace", trace=True) |
| 1658 | """ |
| 1659 | self.log.hugesuccess(*args, extra={"scan_id": self.scan.id}, **kwargs) |
| 1660 | if trace: |
| 1661 | self.trace() |
| 1662 | |
| 1663 | def warning(self, *args, trace=True, **kwargs): |
| 1664 | """Logs a warning message, and optionally the stack trace of the most recent exception. |