Remove static from LogToFile