[issue40884] Added defaults parameter for logging.Formatter

2020-06-29 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue40884] Added defaults parameter for logging.Formatter

2020-06-18 Thread miss-islington
miss-islington added the comment: New changeset 8f192d12af82c4dc40730bf59814f6a68f68f950 by Bar Harel in branch 'master': bpo-40884: Added defaults parameter for logging.Formatter (GH-20668) https://github.com/python/cpython/commit/8f192d12af82c4dc40730bf59814f6a68f68f950 -- nosy: +

[issue40884] Added defaults parameter for logging.Formatter

2020-06-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: New features will go in Python 3.10 indeed. -- nosy: +remi.lapeyre, vinay.sajip versions: -Python 3.9 ___ Python tracker ___ __

[issue40884] Added defaults parameter for logging.Formatter

2020-06-05 Thread Bar Harel
Change by Bar Harel : -- keywords: +patch pull_requests: +19885 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20668 ___ Python tracker ___ __

[issue40884] Added defaults parameter for logging.Formatter

2020-06-05 Thread Bar Harel
New submission from Bar Harel : TLDR; `logging.Formatter('%(ip)s %(message)s', defaults={"ip": None})` Python's logging.Formatter allows the placement of custom fields, e.g. `logging.Formatter("%(ip)s %(message)")`. If a handler has a formatter with a custom field, all log records that go thr