Here I use logging.basicConfig to configure the root logger, and hence all the other loggers, including fontTools'. I could have used fontTools.configLogger as well (and get predefined formatter, etc.), but wanted to show that one can also configure the fontTools logger using the built-in logging configuration functions (e.g. basicConfig, config.dictConfig and config.fileConfig).
This directory includes snippets that people might useful to get ideas from. The contents will come and go, don't rely on them being there or having a certain API. If you need it, copy it and modify it.