This is something that needs to be done on the Spring (Boot) side, not within Logback itself - at least that's how they did this on the logback-classic side.