Saving compiling errors into log file