-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variables in logback.xml not working in native #160
Comments
I actually observed this in production but managed to reproduce with integration tests. Reproducer patch 👇
|
Could be related to quarkusio/quarkus#37273 |
@stuartwdouglas Is there a way to set these values in runtime in native mode using env variables? As i understand config expansion is done during static initialization :/ |
I think we would need to move logback initialization from static init to runtime init. I am not sure what the effects of such a change would be without trying it out. |
@stuartwdouglas Have you found time for this issue? :) |
Workaround is to supply this environment variable during build time. In order to do it for container build, you need to pass
|
Variables in logback.xml are being replaced fine from application.properties but not from environment variables.
Works in JVM mode but not in native mode.
The text was updated successfully, but these errors were encountered: