-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Default Logback config uses deprecated "converterClass" attribute #42006
Comments
The |
The logback prompt is obvious because converterClass is abandoned and replaced by class public static String CONVERTER_CLASS_ATTRIBUTE = "converterClass";
protected boolean validPreconditions(SaxEventInterpretationContext seic, String name, Attributes attributes) {
PreconditionValidator pv = new PreconditionValidator(this, seic, name, attributes);
boolean invalidConverterClassAttribute = pv.isInvalidAttribute(CONVERTER_CLASS_ATTRIBUTE);
boolean invalidClassAttribute = pv.isInvalidAttribute("class");
if (!invalidConverterClassAttribute) {
String var10001 = CONVERTER_CLASS_ATTRIBUTE;
pv.addWarn("[" + var10001 + "] attribute is deprecated and replaced by [class]. " + pv.getLocationSuffix());
}
boolean missingClass = invalidClassAttribute && invalidConverterClassAttribute;
if (missingClass) {
pv.addMissingAttributeError("class");
return false;
} else {
boolean multipleClassAttributes = !invalidClassAttribute && !invalidConverterClassAttribute;
if (multipleClassAttributes) {
pv.addWarn("Both [" + CONVERTER_CLASS_ATTRIBUTE + "] attribute and [class] attribute specified. ");
pv.addWarn("[class] attribute will override. ");
}
pv.validateGivenAttribute("conversionWord");
return pv.isValid();
}
} org/springframework/boot/logging/logback/defaults.xml <conversionRule conversionWord="clr" class="org.springframework.boot.logging.logback.ColorConverter"/>
<conversionRule conversionWord="wex" class="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/>
<conversionRule conversionWord="wEx" class="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/> can define the conversionRule yourself, instead of using the default defaults.xml |
Thanks for the report. See #41887, this can be reproduced by adding |
I've also seen a lot of noise while starting an application now.. also related to this or something other / new? Boot 3.3.3
compared to 3.3.2 or below
|
It's the same problem. The |
Thanks Andy! |
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [com.esotericsoftware.kryo:kryo5](https://github.com/EsotericSoftware/kryo) | compile | minor | `5.5.0` -> `5.6.2` | | [commons-io:commons-io](https://commons.apache.org/proper/commons-io/) ([source](https://gitbox.apache.org/repos/asf?p=commons-io.git)) | compile | minor | `2.16.1` -> `2.17.0` | | [com.google.guava:guava](https://github.com/google/guava) | compile | minor | `33.2.0-jre` -> `33.3.1-jre` | | [org.springframework.boot:spring-boot-starter-parent](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | parent | patch | `3.3.0` -> `3.3.4` | --- ### Release Notes <details> <summary>spring-projects/spring-boot (org.springframework.boot:spring-boot-starter-parent)</summary> ### [`v3.3.4`](https://github.com/spring-projects/spring-boot/releases/tag/v3.3.4) [Compare Source](spring-projects/spring-boot@v3.3.3...v3.3.4) #### 🐞 Bug Fixes - management.health.db.ignore-routing-datasources=true has no effect when an AbstractRoutingDataSource has been wrapped [#​42322](spring-projects/spring-boot#42322) - Missing details in OAuth2ClientProperties validation error message [#​42279](spring-projects/spring-boot#42279) - FileNotFoundException from unused mis-configured SSL bundles [#​42169](spring-projects/spring-boot#42169) - ZipkinHttpClientSender fails with "Failed to introspect Class" when spring-web is not on the classpath [#​42161](spring-projects/spring-boot#42161) - `@RestartScope` can cause 'Recursive update' exceptions when used with container beans [#​42107](spring-projects/spring-boot#42107) - JarLauncher fails to load large jar files [#​42079](spring-projects/spring-boot#42079) - PropertiesMigrationListener wrongly reports property as deprecated when has group [#​42071](spring-projects/spring-boot#42071) - Using an empty string MongoDB 'replica-set-name' property will result in ClusterType=REPLICA_SET [#​42059](spring-projects/spring-boot#42059) - Default Logback config uses deprecated "converterClass" attribute [#​42006](spring-projects/spring-boot#42006) #### 📔 Documentation - Document that spring.jmx.enabled is not intended for third-party libraries [#​42285](spring-projects/spring-boot#42285) - Update link to Log4j2 system properties [#​42263](spring-projects/spring-boot#42263) - Links to GraphQL in the reference guide redirect to the root instead of specific sections [#​42208](spring-projects/spring-boot#42208) - ...
Works - just tried it with a demo project from https://start.spring.io/. Sorry for the inconvenience. |
It's impossible to say with the level of details you've provided. If you believe you've found an issue, create a new issue with a small sample application that we can run ourselves. |
After the logback 1.5.7 upgrade, a deprecated warning is now shown:
Which are the below lines in: org/springframework/boot/spring-boot/3.3.3/spring-boot-3.3.3.jar!/org/springframework/boot/logging/logback/defaults.xml
The text was updated successfully, but these errors were encountered: