thinlog.helper module#
Internal helpers for parsing stack traces.
- thinlog.helper.parse_stack_info(stack_str: str) list[dict[str, str | int | None]][source]#
Parse a ‘stack_info’ string without regex, returning a list of structlog.tracebacks.Stack.
- Parameters:
stack_str – A string like that from logging.error(…, stack_info=True)
- Returns:
A list of Stack objects (usually of length 1), each with its frames populated.