Skip to content
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

Log level using an environment variable ignored #4580

Closed
jntakpe opened this issue Nov 21, 2020 · 0 comments · Fixed by #4755
Closed

Log level using an environment variable ignored #4580

jntakpe opened this issue Nov 21, 2020 · 0 comments · Fixed by #4755

Comments

@jntakpe
Copy link

jntakpe commented Nov 21, 2020

The documentation mentions it is possible to set property using environment variables.

Nevertheless, LOGGER_LEVELS nor LOG_LEVEL prefixes works maybe I'm missing something but the issue seems to come from the PropertiesLoggingLevelsConfigurer line 81 class where the iteration is performed environment using the StringConvention#RAW so environment variables delimited by underscores are excluded.

To reproduce you can checkout the this project and try changing the logger <logger name="com.github.jntakpe" level="DEBUG"/> to INFO or whatever using an environment variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant