Thank you everyone for your comments and answers. I found out that it was VS Code all along, refreshing the same log file to which I was adding data. I think with the latest update VS Code started to do that as I have not see it auto refresh while open.