For analysis purposes, I want to log the application version in all log entries (ideally I would want to do this by editing the logback-spring.xml file instead of writing any Java code).
I'm am already logging spring application name successfully.
Note example startup up log message that shows correct application version.
As per my grade build -- am I updating the manifest file with the correct implementation-version. For Spring build actuator purposes I'm also setting info.build.version=${version}.
See below example -- I'm not sure what to put in ??? to correctly log the application version. I'm tried a number of keys including: info.build.version, application.version, spring.application.version, etc ..
<springProperty name="APP_NAME" source="spring.application.name"/>
<springProperty name="APP_VERSION" source="???"/>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern> version=${APP_VERISON} site=${APP_NAME} %msg%n </pattern>
</encoder>
</appender>
Starting Application v1.0.0-SNAPSHOT with PID 14147