To be very honest even if you keep the logs it is extremely unlikely just logging, even with full IPs is a "material" violation of GDPR unless your static page/file is extremely specific
(You can also expire or fully anonymize the logs before keeping them)