osiegmar/logback-gelf

how to dynamic add staticField

Closed this issue · 1 comments

i want to dynamic set springboot application name.

<staticField>app_name:${spring.application.name}</staticField>

This is provided by the springProperty tag for logback of Spring Boot. Make sure that the logback configuration file has the name logback-spring.xml to support this.