A library for python-based application logging and data collection