[Enhancement] Extract the progress details

New def write_log which writes details and advanced information in details.log file.