-
Notifications
You must be signed in to change notification settings - Fork 89
3.0.0-M3 Logging Date Format #225
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
Comments
Hi @fabapp2 If no one is working on this issue, I can pick it up. Ravi |
Sure @ravig-kant, but can we close #159 first? |
Thanks, @ravig-kant for picking up this issue! |
Hi @fabapp2 In the case of a multimodule project, which project should be used to add the "logging.pattern.dateformat" pattern? Ideally, it should be the one containing the "SpringBootApplication" annotation. Also, can we pick anyone to add the property if the project contains multiple property files ( stitched together using "spring.config.location")? |
Hi @ravig-kant In case the property is not set in any
As all other property files inherit the properties in the default |
Hi @fabapp2 I have a question about leveraging ProjectResourceFinder for a specific module ( in a multi-module project). The finder works for the whole project but not for a specific module. The reason being the ApplicationModule doesn't expose any API to get its ResourseSets. It provides an option to get the JavaSourceSets that don't inherit from ProjectResourceSets. JavaSourceFinder - https://github.com/spring-projects-experimental/spring-boot-migrator/pull/296/files#diff-5c5279f2af2f8b2b5f99ca45654de9e4d76474b049593e4dc406b837f2505ae3 JavaSourceFinder Implementation - https://github.com/spring-projects-experimental/spring-boot-migrator/pull/296/files#diff-505b4759b4a11a16ec12a8158af4cbe84ddb6eafee7f767986e0082966500d5e |
Hi @ravig-kant, thanks for your PR! The Maven multi-module support is in the making. But you're right, we need some functionality to ask I think the These need to be fixed
Then the algo could be implemented as
|
Hi @ravig-kant |
Hi @fabapp2 Thanks for prioritizing the search feature in ApplicationModule. I will proceed. |
Hi @fabapp2 I raised PR for #305. However, for this issue, are you proposing to add application.properties to every top-level module? Earlier we decided to add the application.properties only for the modules containing classes annotated with SpringBootApplication.
I am not sure if we can nest a recipe. In case it's not possible, we can think of an alternate approach. |
Hi @ravig-kant
You're right 😊 This has to be improved. I added an issue
That's the report bit. 👍
Not sure if that's what you meant with nesting, but you can (and should) add Actions to a recipe and make them execute sequentially, see boot-2.7-3.0-dependency-version-update.yaml I'd say let's use your #305 and the report bit you mentioned and we add the properties files to application modules for now |
The default format for the date and time component of log messages for Logback and Log4j2 has changed to align with the ISO-8601 standard. The new default format
yyyy-MM-dd’T’HH:mm:ss.SSSXXX
uses aT
to separate the date and time instead of a space character and adds the timezone offset to the end. TheLOG_DATEFORMAT_PATTERN
environment variable orlogging.pattern.dateformat
property can be used to restore the previous default value ofyyyy-MM-dd HH:mm:ss.SSS
.What needs to be done
Finder
Finds if
logging.pattern.dateformat
is setRecipe
Set
logging.pattern.dateformat=yyyy-MM-dd HH:mm:ss.SSS
if this property is not currently set.Report
Informs user about the change and how to reset it and why this is a good idea
The text was updated successfully, but these errors were encountered: