Skip to content

Resolving an environment variable for logging.config is not working for native builds #41663

Closed as not planned
@klopfdreh

Description

@klopfdreh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions