I want to configure logging in spring boot application. I have configure logback-spring.xml. The sample of logback-spring.xml is located on here and sample of application-dev.properties file is located here When I just try to run spring boot application get below error:
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.util.PropertySetter@5b7a5baa - Failed to invoke valueOf{} method in class [ch.qos.logback.core.util.FileSize] with value [{LOG_FILE_MAX_SIZE}]
ERROR in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@2003496028 - maxFileSize property is mandatory.
If I replace <maxFileSize>{LOG_FILE_MAX_SIZE}</maxFileSize> with <maxFileSize>50MB</maxFileSize> application is running successfuuly