Configure logback https://logback.qos.ch/manual/configuration.html#definingProps and use system properties (-D) to set configuration parameters in the logback-spring.xml or on the logback.xml.