Try updating the below package (or other logback packages) to more updated version
ch.qos.logback:logback-core
For me, I got this exact issue when I upgraded the current spring boot version to 3.5.4 from 3.3.5.
When I updated my logback-core package to 1.5.18 the problem was gone