My relay logs IP addresses very briefly, in RAM only. The retention time seems to be a very few minutes usually depending on traffic. I disclose as much as I could think of here:
https://forge.thesamecat.io/TheSameCat/thesamecat-relay-tos
I use cloudflare for DNS as well, but bypass the CDN for the relay (proxy off).