This seems like a feature that could potentially save a lot of battery, storage and make the logged data cleaner.
Scenario: You're home, connected to your home WiFi. Your phone keeps trying to get your position but since you're under a roof, it usually does't succeed. The GPS typically either stays on until the configured tineout is reached or it manages to get an inaccurate position, polluting the data with needless jumps.
If an option to pause logging while connected to a list of networks was introduced, one could easily avoid this situation without having to manually pause/unpause logging.