Print log messages to stdout for easier diagnostics.