I\'m doing some task by looping it at the end of each loop I wanna clear the log, I can be able to doing but when I open file where I write the logs I\'m getting first few lines