-
Notifications
You must be signed in to change notification settings - Fork 692
Making Logging a separate module outside of autoconfiguration #1455
Conversation
@artembilan I decided against the "stackdriver" module because there is nothing useful to put there for the trace stuff, only logging. |
Codecov Report
@@ Coverage Diff @@
## master #1455 +/- ##
============================================
+ Coverage 69.15% 76.45% +7.29%
+ Complexity 1520 1387 -133
============================================
Files 215 142 -73
Lines 5898 4698 -1200
Branches 600 536 -64
============================================
- Hits 4079 3592 -487
+ Misses 1567 861 -706
+ Partials 252 245 -7
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have only one but big concern to this change: it is breaking one.
In other my projects we try to keep the functionality as much as possible until the next major version, where we really can allow ourselves a luxury of removal.
Not sure what is the breaking changes policy in Spring Cloud (/CC @spencergibb ), but I would keep the current classes as @Deprecated
at least until the next 1.3
version. This old classes may just extend new ones.
As well as that logback-appender.xml
should stay in the autoconfigure
as well. For the same reason.
My point is that I should be able to upgrade my project to your new version and everything works well with the gain that I know can use your new features.
The deprecation still let me to work, but I will know that your are going to remove it in the future, so I need to tale appropriate actions to mitigate an issue.
Not sure how else to explain this, but we have to keep in mind potential breaking changes already since releasing version 1.0
.
I can't review all the PR in this project, but that would be great that your team would try to stay away from breaking changes as much as possible.
Thanks for understanding.
@artembilan I see your point. I did expect this to come up because there are some serious breaking changes, the most important of which is the path change to logback config files. I am, however, curious about the breaking changes policy. I have seen some breakage in minor versions of Spring like from Boot 2.0 to 2.1 and Framework 5.0 to 5.1, and even more so in Spring Cloud projects. |
I'm not sure what you mean about Spring Framework, but we really had some breaking changes in Spring Boot from 2.0 to 2.1: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1-Release-Notes But that's fully different story and should be revised privately if that. Anyway let's just don't make this breaking changes story like blaming each other! Let's try to keep our code from the breakage as much as possible. I think it won't hurt to keep content of those logging configs as identical. Doesn't look like we change it too often... |
@artembilan I followed your suggestion to also keep the original classes and files as deprecated. Please take another look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! Forgot to mention: please, update Copyright for all the affected classes.
There is a failure on Travis, but i don't believe it is related to your changes: we have a bunch of failing CI plans after some recent changes. I guess might be as a fact of upgrade to the latest Spring Cloud.
Fixes: #1448.