redirect stdout and stderr to dlog