[issue36532] Example of logging.formatter with new str.format style

2019-04-06 Thread spaceman_spiff
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 this can be closed

[issue36532] Example of logging.formatter with new str.format style

2019-04-04 Thread spaceman_spiff
Change by spaceman_spiff : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue36532> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36532] Example of logging.formatter with new str.format style

2019-04-04 Thread spaceman_spiff
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