From Newsgroup: comp.lang.python.announce
I'm happy to announce a newborn library! foffinf, a way to use
stdlib's logging with the new Format Specification Mini-Language.
In other words, you will be able to do:
logger.info("The result is {:05d}", result)
You can forget about old printf-style formatting now!
To enable which modules you want with this behaviour you have to
declare them (including or not the submodules. Check the README, it's
very simple.
Released in PyPI, as usual:
https://pypi.org/project/foffinf/0.1/
Enjoy!
--
. Facundo
Blog:
http://www.taniquetil.com.ar/plog/
PyAr:
http://www.python.org.ar/
Twitter: @facundobatista
--- Synchronet 3.20a-Linux NewsLink 1.114