added new application attribute logfile=if set redirect stdout and stderr to given file