Abstracted debug logging.

Makefile is setup to show logs for make target 'debug', but not for 'release'.