logs are now write in a file - Part 4