micropython-lib/python-stdlib/logging/examples
Jim Mussared 58bab0add3 logging: Fall back to root logger level for unset child.
Previously a child logger just uses the global default when unset.
Modified to matches the CPython behavior of using the parent's level.

Also implemented CPython's getEffectiveLevel() which provides a convenient
way to implement this. In our version, we only ever have one parent
(the root), so it only has to recurse one level.

Also set the default level to WARNING to match CPython.

Updated the examples to highlight the differences (but they now match).

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-12-21 09:52:26 +11:00
..
basic_example.py logging: Fall back to root logger level for unset child. 2022-12-21 09:52:26 +11:00
example_logging_1.py logging: Improve the logging module. 2022-12-06 17:40:10 +11:00
example_logging_2.py logging: Improve the logging module. 2022-12-06 17:40:10 +11:00
root_logger.py logging: Fall back to root logger level for unset child. 2022-12-21 09:52:26 +11:00