Makes properties from spring environment configuration available in logging configuration
<dependency>
<groupId>eu.hinsch</groupId>
<artifactId>spring-boot-extended-logging-properties</artifactId>
<version>0.2.0</version>
</dependency>
runtime("spring-boot-extended-logging-properties:0.2.0")
In application.properties
logging.properties.some.key=Some Value
In logback.xml
${some.key}
- Starting with release 1.3 (>=M2) spring boot supports access to any environment property in logback configuration out of the box (for details see the official documentation)