Example of storing custom data in log_visit

I’m looking for a concrete example of adding custom data to the log_visit table. The closest I’ve found is the Provider plugin but this just creates a new location_provider column when the plugin is installed but doesn’t add data to it - instead it posts the Provider.getCleanHostname event for other plugins to hook into. Are there any plugins out there I can look at as an example. Is it even an intended use case to hook into the Live.getAllVisitorDetails event to store custom data in the log_visit table? Dimensions and SQL could be the way to do it.