New submission from creative-resort <i...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44722>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to