Author creative-resort
Recipients creative-resort
Date 2021-07-23.08:35:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627029304.73.0.520646474457.issue44722@roundup.psfhosted.org>
In-reply-to
Content
I'm opening this issue to propose the following enhancement
and a PR on GitHub.

Concerning: https://github.com/python/cpython/blob/main/Lib/string.py

The idea:
Format strings, that are comprised of field values with newlines (Multiline)
as Multiline strings in a quasi tabbed format.

--> In particular useful for logging of information, that occupies multiple lines.

For example: '{levelname}:{name}:{message}:{api}', 
             where the message and the api field is a string with multiple lines (contains newlines)

The result:   2021-07-23 09:50:28,981 module_name WARNING     Quota exceeded         Google-Cloud-API
                                                              Backing off for 5s     version: v1
                                                              after trying 2x
History
Date User Action Args
2021-07-23 08:35:04creative-resortsetrecipients: + creative-resort
2021-07-23 08:35:04creative-resortsetmessageid: <1627029304.73.0.520646474457.issue44722@roundup.psfhosted.org>
2021-07-23 08:35:04creative-resortlinkissue44722 messages
2021-07-23 08:35:04creative-resortcreate