Return *bound_logger*'s context. The type of *bound_logger* and the type returned depend on your configuration. Args: bound_logger: The bound logger whose context you want. Returns: The *actual* context from *bound_logger*. It is *not* copied first. .. ve
(bound_logger: BindableLogger)
| 227 | |
| 228 | |
| 229 | def get_context(bound_logger: BindableLogger) -> Context: |
| 230 | """ |
| 231 | Return *bound_logger*'s context. |
| 232 | |
| 233 | The type of *bound_logger* and the type returned depend on your |
| 234 | configuration. |
| 235 | |
| 236 | Args: |
| 237 | bound_logger: The bound logger whose context you want. |
| 238 | |
| 239 | Returns: |
| 240 | The *actual* context from *bound_logger*. It is *not* copied first. |
| 241 | |
| 242 | .. versionadded:: 20.2.0 |
| 243 | """ |
| 244 | # This probably will get more complicated in the future. |
| 245 | return bound_logger._context |
no outgoing calls
searching dependent graphs…