I believe you're mistaken. GDPR allows you to record IP addresses for normal operation of a site, which specifically includes logging. No banner is required.
GDPR is not "vague" about this; perhaps you haven't read it (as laws go, it's pretty easy to read).