If you are seeing this on task manager after every line of log is written then you need to follow these steps.
In the search bar type : Indexing
You should see this.
Click Indexing Options
You should now see this.
Click on Users and hit Modify
You should see this.
Click the > on the local disk (C:)
Scroll down till you see users folder.
Click the > on the Users folder.
You should see this
Click the > on the Public folder
Uncheck this
Hit OK And Hit Close
Problem Solved!