목표 : Logback 1.2.11 -> 1.4 버전 업그레이드 (현) logback-classic, core:1.2.11, logstash-logback-encoder:6.4)
시도 1. 무지성 업그레이드
실패 : StaticLoggerBinder 클래스를 로드할 수 없다는 로그
logback 1.3 버전 이상부터는 slf4j-api 2버전 이상을 타겟팅하며 StaticLoggerBinder를 더이상 제공하지 않는다.
Note that slf4j-api versions 2.0.x and later use the ServiceLoader mechanism. Backends such as logback 1.3 and later which target slf4j-api 2.x, do not ship with org.slf4j.impl.StaticLoggerBinder. If you place a logging backend which targets slf4j-api 2.0.x, you need slf4j-api-2.x.jar on the classpath. See also relevant faq entry.
SINCE 1.6.0 As of SLF4J version 1.6, in the absence of a binding, SLF4J will default to a no-operation (NOP) logger implementation.
생김새만 다를 뿐 똑같은 오류
결론: 불가능
Spring Boot 2.5.5 depends on logback 1.2.x and SLF4J 1.x.
SLF4J implementation significantly changed between 1.x and 2.x (and as a consequence logback 1.2.x vs. 1.3.x/1.4.x) so that some usages are not compatible anymore. Typically usage of StaticLoggerBinder is not possible anymore.
The 1st version of Spring Boot compatible with SLF4J 2.x and logback 1.3.x/1.4.x is the 3.0.0.
You need to either stay with logback 1.2.x and SLF4J 1.x, or also upgrade Spring Boot to 3.x. I would recommend the latter obviously.
참고사이트
https://livenow14.tistory.com/64