Note that IP addresses are personal information, so if you're logging them like this, you'll need to get consent (or have some other legal basis) and also handle deletion requests for EU users. One of the many joys of GDPR compliance.
This is one of those "if someone wants their IP scrubbed, they can request it, but lol no" situations: for blogs run by regular folks instead of services run by businesses, just pointing to "it's in the GDPR" is not enough. The GDPR gets a LOT of things intentionally wrong so it can go after PII-gathering-so-that-can-be-monetized businesses.