redirect output to stdout, to logfile