redirect output to stdout/stderr log files