-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
kotlin-logging version 4.x: breaking changes #264
Comments
I'd love to keep using kotlin-logging on the JVM with good integration of common JVM logging frameworks (lslf4j, log4j2). |
Thanks for the feedback! Generally, the idea I have is as such: The disadvantage is that in multiplatform we currently can't have a jvm impl which is not slfj (for example going directly to log4j2 api without slf4j). The idea is that slf4j will still be supported, but instead of inheritance it will be via wrapping it. This is a breaking change of course, but it should still work seamless with slf4j.
Hope that is clear. More thoughts are welcome. |
One of the options I am considering is moving to java.util.logging. Turns out it has some location support with |
After reading a bit more in here and some other resources I think that:
The current direction I have is to keep the dependency on slf4j (maybe with some changes to visible factories), but allow also other logging framewoks via system properties. |
Initial version is at #265 |
I release an initial version
Should be changed to:
|
Release |
Relevant PR now: #269 |
Instructions to try:
Logger:
|
Do you know when 4 final would be released ? |
I am looking at the stats from time to time, and still need to do some checks on my apps. |
Thanks for reply. For what it's worth we're running this at scale on beta 28 and it seems solid. |
I'd be very happy to see the logging methods are inlined to avoid unnecessary performance impacts mentioned in #34 (comment) |
The problem with inlining is that it doesn't work well with the current approach of embedding line numbers in the log message (slf4j does that in runtime). So at the moment this is not planned to be added. |
Seems like the package name is missing the lib name. So I am going to do another (breaking) change of package rename: |
See #320 |
Version 4.0 released! |
BREAKING CHANGE: More details oshai/kotlin-logging#264
As part of a revamp to the library I am considering some breaking changes, or api's that should be added / removed:
about 5k refs at: https://github.com/search?q=%22mu.KLogging%22&type=code
I am basically considering two conflicting approaches
Related issues: #122 #34 #228
Any feedback is appreciated.
The text was updated successfully, but these errors were encountered: