Message398034
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 |
|
Date |
User |
Action |
Args |
2021-07-23 08:35:04 | creative-resort | set | recipients:
+ creative-resort |
2021-07-23 08:35:04 | creative-resort | set | messageid: <1627029304.73.0.520646474457.issue44722@roundup.psfhosted.org> |
2021-07-23 08:35:04 | creative-resort | link | issue44722 messages |
2021-07-23 08:35:04 | creative-resort | create | |
|