MCPcopy Create free account
hub / github.com/hynek/structlog / CapturedCall

Class CapturedCall

src/structlog/testing.py:149–167  ·  view source on GitHub ↗

A call as captured by `CapturingLogger`. Can also be unpacked like a tuple. Args: method_name: The method name that got called. args: A tuple of the positional arguments. kwargs: A dict of the keyword arguments. .. versionadded:: 20.2.0

Source from the content-addressed store, hash-verified

147
148
149class CapturedCall(NamedTuple):
150 """
151 A call as captured by `CapturingLogger`.
152
153 Can also be unpacked like a tuple.
154
155 Args:
156 method_name: The method name that got called.
157
158 args: A tuple of the positional arguments.
159
160 kwargs: A dict of the keyword arguments.
161
162 .. versionadded:: 20.2.0
163 """
164
165 method_name: str
166 args: tuple[Any, ...]
167 kwargs: dict[str, Any]
168
169
170class CapturingLogger:

Callers 6

test_alogMethod · 0.90
test_sync_blMethod · 0.90
test_capturesMethod · 0.90
logMethod · 0.85

Calls

no outgoing calls

Tested by 6

test_alogMethod · 0.72
test_sync_blMethod · 0.72
test_capturesMethod · 0.72
logMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…