I would like to read environment variable or property in every log line from logback.xml. Example if I hit echo "${FOO_INFO}" the result is "FOO_RESULT", this FOO_RESULT I need to print it in the every log line.
After adding JAVA_OPTS="-Dfoo.info=${FOO_INFO}"
I tried below option:-
Option : added and calling %d{ISO8601} [%thread] %-5level %logger{36} ${FOO_INFO}- %msg%n