Write out console messages to stdout, to help with debugging.