Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/core/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ For inheritance, Logger uses `child` parameter to ensure we don't compete with i

Changes are bidirectional between parents and loggers. That is, appending a key in a child or parent will ensure both have them. This means, having the same `service` name is important when instantiating them.

A child Logger without a `level` follows its parent's log level, including later changes from `setLevel()` and sampling. Pass `level` to give a child its own log level.
A child Logger without a `level` follows its parent's log level, including later changes from `setLevel()` and sampling. When no parent Logger exists, the child stays at `NOTSET` and Python's logging resolves it against the root logger, so it may end up using the root log level instead of Powertools' `INFO` default. Pass `level` to give a child its own log level.

=== "logging_inheritance_good.py"

Expand Down