Made the log file reset when world is reset or resized.