Capture stderr to logfile in dev deployment