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

Logback configuration defined via JAVA_TOOL_OPTIONS is ignored #9009

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

timyates
Copy link
Contributor

Fixes #8596

Previously, we only checked the classpath for logback configuration files, and when refreshing we ignored the logback.configurationFile setting.

This PR checks the filesystem if the config cannot be found on the classpath

It also adds logback.configurationFile as an optional property that points to the location of the config for when we refresh the configuration.

logback.configurationFile has precedence over the existing logger.config property

Previously, we only checked the classpath for logback configuration files, and when refreshing we ignored the `logback.configurationFile` setting.

This PR checks the filesystem if the config cannot be found on the classpath

It also adds `logback.configurationFile` as an optional property that points to the location of the config for when we refresh the configuration.

`logback.configurationFile` has precedence over the existing `logger.config` property
@timyates timyates added the type: bug Something isn't working label Mar 27, 2023
@timyates timyates added this to the 3.8.8 milestone Mar 27, 2023
@timyates timyates self-assigned this Mar 27, 2023
@timyates timyates linked an issue Mar 27, 2023 that may be closed by this pull request
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

78.6% 78.6% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

logback configuration defined via JAVA_TOOL_OPTIONS is ignored
3 participants