[New-bugs-announce] [issue44722] RFC: string Multiline Formatter
creative-resort
report at bugs.python.org
Fri Jul 23 04:35:04 EDT 2021
New submission from creative-resort <info at creative-resort.com>:
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
----------
components: Library (Lib)
messages: 398034
nosy: creative-resort
priority: normal
severity: normal
status: open
title: RFC: string Multiline Formatter
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44722>
_______________________________________
More information about the New-bugs-announce
mailing list