SimFlightPath is a flight path recorder for Microsoft Flight Simulator. Let this program open while flying in MSFS and all your flights will be recorded. You can then export them as GPX or KML files to be viewed in programs like Google Earth Pro, GPXSee or any other that supports these formats.