-
-
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
Incorrect file name and line number #17
Comments
Can you please share a repo that reproduces it? |
And another question - when you use slf4j directly do you get correct location? If not it's probably a configuration issue. |
Yes, the location is definitely right when using Our codebase is not open source so it's a little hard to point you at something. Is there any idea you might have that would help me debug it? It does seem to be using a |
I'm getting the following with
And then |
Here is what I suspect: LocationAwareKLogger has a field called |
Just tested and you're right, the non-lambda flavor works perfectly! |
that is what I suspected - I will create a fix for it and release 1.4.3 |
implemented all log methods in location aware logger
I wasnt able to reproduce it - I think because it doesnt happen with log4j implementation. anyway I will release 1.4.3 and we will make sure it fix the issue. |
Great thank you for the quick turnaround. |
1.4.3 is deployed. let me know if it was solved. |
Fixes it for me. |
For my
logback.xml
configuration of:I'm consistently getting file name / line number in the
KLogger
file(KLogger.kt:23)
for all my debug statements, which is precisely whereKLogger
itself callsdebug()
.I'm using 1.4.2 so #11 shouldn't apply. This happens when I use
val logger = LoggerFactory.getLogger("class name")
orprivate val logger = KotlinLogging.logger {}
.Thanks!
The text was updated successfully, but these errors were encountered: