We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be0f855 commit fd4293bCopy full SHA for fd4293b
docs/contextvars.rst
@@ -50,11 +50,11 @@ The general flow is:
50
>>> # Then use loggers as per normal
51
>>> # (perhaps by using structlog.get_logger() to create them).
52
>>> log.msg("hello")
53
- a=1 b=2 event='hello'
+ event='hello' a=1 b=2
54
>>> # Use unbind_contextvars to remove a variable from the context
55
>>> unbind_contextvars("b")
56
>>> log.msg("world")
57
- a=1 event='world'
+ event='world' a=1
58
>>> # And when we clear the threadlocal state again, it goes away.
59
>>> clear_contextvars()
60
>>> log.msg("hi there")
0 commit comments