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

Function get_logger

src/structlog/stdlib.py:545–558  ·  view source on GitHub ↗

Only calls `structlog.get_logger`, but has the correct type hints. .. warning:: Does **not** check whether -- or ensure that -- you've configured *structlog* for standard library :mod:`logging`! See :doc:`standard-library` for details. .. versionadded:: 20.2.0

(*args: Any, **initial_values: Any)

Source from the content-addressed store, hash-verified

543
544
545def get_logger(*args: Any, **initial_values: Any) -> BoundLogger:
546 """
547 Only calls `structlog.get_logger`, but has the correct type hints.
548
549 .. warning::
550
551 Does **not** check whether -- or ensure that -- you've configured
552 *structlog* for standard library :mod:`logging`!
553
554 See :doc:`standard-library` for details.
555
556 .. versionadded:: 20.2.0
557 """
558 return _config.get_logger(*args, **initial_values)
559
560
561class AsyncBoundLogger:

Callers 9

test_nativeMethod · 0.90
test_native_loggerMethod · 0.90
test_integrationMethod · 0.90
test_recreate_defaultsFunction · 0.90
test_tmp_bind_lazyMethod · 0.90
test_captures_logsMethod · 0.90

Calls

no outgoing calls

Tested by 9

test_nativeMethod · 0.72
test_native_loggerMethod · 0.72
test_integrationMethod · 0.72
test_recreate_defaultsFunction · 0.72
test_tmp_bind_lazyMethod · 0.72
test_captures_logsMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…