MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / hugeinfo

Method hugeinfo

bbot/modules/base.py:1615–1629  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 3

handle_eventMethod · 0.45
installMethod · 0.45
set_log_levelMethod · 0.45

Calls 1

traceMethod · 0.95

Tested by

no test coverage detected