How to write the log to harddisk while installing?