MCPcopy Index your code
hub / github.com/python/cpython / formatStack

Method formatStack

Lib/logging/__init__.py:686–697  ·  view source on GitHub ↗

This method is provided as an extension point for specialized formatting of stack information. The input data is a string as returned from a call to :func:`traceback.print_stack`, but with the last trailing newline removed. The base implementation j

(self, stack_info)

Source from the content-addressed store, hash-verified

684 return self._style.format(record)
685
686 def formatStack(self, stack_info):
687 """
688 This method is provided as an extension point for specialized
689 formatting of stack information.
690
691 The input data is a string as returned from a call to
692 :func:`traceback.print_stack`, but with the last trailing newline
693 removed.
694
695 The base implementation just returns the value passed in.
696 """
697 return stack_info
698
699 def format(self, record):
700 """

Callers 1

formatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected