IMG-8: Add logging infrastructure and log statements.