Add ability to dump debug logs to stdout.