@rail_ FWIW, the data retention laws in the EU have been struck down multiples times in courts, this seems to be the latest iteration of that: https://www.blueprintforfreespeech.net/en/news/eu-court-rules-users-data-cant-be-collected-by-isps-for-surveillance
So it appears that at least within the EU, you cannot actually be forced to keep logs even for law enforcement purposes