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

Method unbind

src/structlog/stdlib.py:185–192  ·  view source on GitHub ↗

Return a new logger with *keys* removed from the context. Raises: KeyError: If the key is not part of the context.

(self, *keys: str)

Source from the content-addressed store, hash-verified

183 return super().bind(**new_values)
184
185 def unbind(self, *keys: str) -> Self:
186 """
187 Return a new logger with *keys* removed from the context.
188
189 Raises:
190 KeyError: If the key is not part of the context.
191 """
192 return super().unbind(*keys)
193
194 def try_unbind(self, *keys: str) -> Self:
195 """

Callers 7

unbindMethod · 0.45
test_proxies_unbindMethod · 0.45
test_bind_unbindMethod · 0.45
test_unbindMethod · 0.45
test_unbind_failMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_proxies_unbindMethod · 0.36
test_bind_unbindMethod · 0.36
test_unbindMethod · 0.36
test_unbind_failMethod · 0.36