Python 3.7 logging: f-strings vs % [duplicate]

The documentation says that the logging lib is optimized to use the %s formatting style. I can’t remember where it is mentionned exactly, but I read it a few months ago.

Edit – Found! https://docs.python.org/3/howto/logging-cookbook.html#formatting-styles
Edit2(thanks to Robin Nemeth): https://docs.python.org/3/howto/logging.html#optimization

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)