Totally get where you are coming from and understand that in some countries this is not something you want to collect.
The logs would be the easy part using some sort of plugin. The trickier change is amending Discourse core not to log last IP address for user in the database.
It is all doable, not built-in, but can be done with the right hooks.