Build log file