jgdv.logging.format.stack_m

Classes

StackFormatter_m

A Mixin Error formatter, adapted from stackprinter's docs

Module Contents

class jgdv.logging.format.stack_m.StackFormatter_m[source]

A Mixin Error formatter, adapted from stackprinter’s docs Compactly Formats the error stack trace, without src.

formatException(exc_info) <Unknown>[source]
Parameters:

exc_info (jgdv.Maybe[tuple])

Return type:

str

formatStack(stack_info) <Unknown>[source]
Parameters:

stack_info (str)

Return type:

str

indent_str: ClassVar[str] = '  |  '
source_height: ClassVar[int] = 10
source_lines: ClassVar[int | str] = 0
suppress: ClassVar[list[jgdv.RxStr]] = ['.*pydantic.*', '<frozen importlib._bootstrap>']
use_stackprinter: bool = True