spaceman_spiff added the comment:
I was under the impression that this was all it takes to use loggers with the
normal string.format syntax.
e.g.:
log.info('{}', 'Test')
Turns out when I tested it I used f-strings in the first parameters - so I got
it wrong.
Imho th
Change by spaceman_spiff :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue36532>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from spaceman_spiff :
It was not quite clear how to use the logging library with the new str.format
style so I added an example in the logging cookbook
--
assignee: docs@python
components: Documentation
messages: 339470
nosy: docs@python, spaceman_spiff
priority: normal