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

Function build_bl

tests/test_base.py:18–26  ·  view source on GitHub ↗

Convenience function to build BoundLoggerBases with sane defaults.

(logger=None, processors=None, context=None)

Source from the content-addressed store, hash-verified

16
17
18def build_bl(logger=None, processors=None, context=None):
19 """
20 Convenience function to build BoundLoggerBases with sane defaults.
21 """
22 return BoundLoggerBase(
23 logger if logger is not None else ReturnLogger(),
24 processors if processors is not None else _CONFIG.default_processors,
25 context if context is not None else _CONFIG.default_context_class(),
26 )
27
28
29class TestBinding:

Callers 15

test_reprMethod · 0.70
test_new_clears_stateMethod · 0.70
test_comparisonMethod · 0.70
test_unbindMethod · 0.70
test_unbind_failMethod · 0.70
test_try_unbindMethod · 0.70
test_try_unbind_failMethod · 0.70

Calls 2

BoundLoggerBaseClass · 0.90
ReturnLoggerClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…