]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-115233: Fix an example in the Logging Cookbook (GH-115325) (GH-115355)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Feb 2024 21:25:47 +0000 (22:25 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2024 21:25:47 +0000 (23:25 +0200)
commit21edde17b376a95223161f11d71893b91eccbf50
tree3ed648137e0ce254bc4a5e43fcf4504a219b6746
parentd73213423259b01216d61ff20c3dd11698145ec1
[3.11] gh-115233: Fix an example in the Logging Cookbook (GH-115325) (GH-115355) (GH-115357)

Also add more tests for LoggerAdapter.

Also support stacklevel in LoggerAdapter._log().
(cherry picked from commit 225856ef3e6c5e4f234ede1dd118b57f6e8f6d0e)
(cherry picked from commit 91822018eeba12a6c9eabbc748363b2fd4291b30)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/howto/logging-cookbook.rst
Lib/logging/__init__.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Documentation/2024-02-12-12-26-17.gh-issue-115233.aug6r9.rst [new file with mode: 0644]