Use logger to output debugging info