-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
sflj jdk backend does not recognize class name #351
Comments
Thank you for reporting an issue. See the wiki for documentation and slack for questions. |
If you're using log4j it might be related to #332. |
Btw - have you tried the latest version of kotlin-logging? |
The way to reproduce it is to use the sfl4j-jdk backend. That reliably makes the problem emerge. It might be the same issue. |
Can you please test it with version 5.1.0 (not 5.0.1)? |
Exactly the same. |
I suspect what printed is location info and not logger name. |
Most likely this is fixed in 5.1.1 as part of #332 . |
I still have this issue, any other? |
Can you please create a way to reproduce it? |
I'm investigating because I just migrated from V3. It could be I have to change something in slf4j. |
Ok, that was the issue. It seems to work and the issue can be closed IMHO. |
Any more details on how it was fixed? |
Tbh I just updated the other deps and cleaned the gradle caches. I wish I could tell you more, but it was just this for me :) |
These are the log messages that I'm seeing. This is not the class that I was expecting, and there does not seem to be a way to change it.
Aug 17, 2023 9:51:14 PM io.github.oshai.kotlinlogging.KLogger$DefaultImpls atInfo$default
This is my dependency setup:
Most likely an issue with the JDK backend (so may be treated as invalid), but doing this can't provide a fix for it for some reason:
protected val logger = KotlinLogging.logger("name of logger")
Replaced the backend as a fix, but leaving it here as a reference.
The text was updated successfully, but these errors were encountered: