When activated in the GPS toolbar settings, the "Log to Geopackage/Spatialite" action will prompt the user to select an existing GPKG or SpatiaLite file, or enter a new file name. A "gps_points" and "gps_tracks" table will be created in the file with a predefined structure.
All incoming GPS messages will be logged to the gps_points layer, along with speed/bearing/altitude/accuracy information from the GPS.
When the GPS is disconnected (or QGIS is closed), the entire recorded GPS track will be added to the gps_tracks table, along with some calculated information like track length, and start and end times)