Backend/Springboot

logback There is no conversion class registered for composite conversion word [clr] error

개발하는루루 2022. 10. 25. 13:15

logback-spring.xml 설정 시 아래와 같은 에러가 뜰 수 있다.

 %PARSER_ERROR[clr] %PARSER_ERROR[clr] %PARSER_ERROR[clr] %PARSER_ERROR[clr] %PARSER_ERROR[clr] %PARSER_ERROR[clr] Application run failed
java.lang.IllegalStateException: Logback configuration error detected: 

ERROR in ch.qos.logback.core.pattern.parser.Compiler@46cdf8bd - There is no conversion class registered for composite conversion word [clr]
ERROR in ch.qos.logback.core.pattern.parser.Compiler@46cdf8bd - Failed to create converter for [%clr] keyword

 

이럴 경우 logback-spring.xml 파일 안에 아래 내용을 추가해주면 설정해둔 log-back이 문제없이 잘 진행된다.

<include resource="org/springframework/boot/logging/logback/defaults.xml" />