Writing list details to log file