Added logging via python logging module