I can log every incoming request by setting
logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG
The requests will then be logged at level DEBUG. But I want them to be logged at level INFO instead. I don't think there is a flag for it but the loglevel is hardcoded by spring. But is there maybe some kind of filter that can intercept these logs and change their log level?
You can use a filter that catches the request and logs it at the appropriate log level. Also, it would be wise to set it to
HIGHEST_PRECEDENCEso that it is executed before any other filters in the filter chain and logs the requests before some other filter modifies it.Register it as a spring bean in your configuration class.