logs are now write in a file - Part 6