Add file logging of stats