saving output to seperate log file