Closed as not planned
Closed as not planned
Description
Because we want to use a different logging styles for the runtime and the build time, it seems that it is currently not possible to use this configuration:
logging:
config: ${LOGGING_CONFIG_VALUE:classpath:logback.xml}
When you perform a native build without any LOGGING_CONFIG_VALUE
environment variable logback.xml
from classpath is used, but when you later on add the environment variable LOGGING_CONFIG_VALUE
during runtime still logback.xml is used.
The only way to enforce a different logging configuration is to use it during the maven build e.g. clean deploy -Pnative_build -DLOGGING_CONFIG_VALUE=classpath:logback-json.xml
for example