Code Monkey home page Code Monkey logo

Comments (10)

github-actions avatar github-actions commented on June 2, 2024

Thank you for reporting an issue. See the wiki for documentation and slack for questions.

from kotlin-logging.

MzrW avatar MzrW commented on June 2, 2024

The difference seems to be inside LocationAwareKLogger.

Log statements without payload are logged using: org.slf4j.spi.LocationAwareLogger.log(org.slf4j.Marker marker, String fqcn, int level, String message, Object[] argArray, Throwable t)

Log statements with payload are logged using:
org.slf4j.spi.LoggingEventBuilder.log(String message).
LocationAwareKLoggger.logWithPayload seems to correctly set the callerBoundary.

The first thing org.slf4j.spi.DefaultLoggingEventBuilder.log(String message) does is to override the callerBoundary with its own classname.

Therefore I think the bug is inside slf4j not in kotlin-logging.

Maybe leave the issue open until the bug is resolved there ...

from kotlin-logging.

oshai avatar oshai commented on June 2, 2024

Are you using log4j? There was a related bug there.

from kotlin-logging.

MzrW avatar MzrW commented on June 2, 2024

No Im using slf4j-jdk the java util logging.

from kotlin-logging.

oshai avatar oshai commented on June 2, 2024

Log4j slf4j issue is here for reference: apache/logging-log4j2#1533

from kotlin-logging.

oshai avatar oshai commented on June 2, 2024

It might be a similar fix.

from kotlin-logging.

oshai avatar oshai commented on June 2, 2024

Seems like this should be fixed in slf4j 2.0.13. I will try to upgrade.

from kotlin-logging.

oshai avatar oshai commented on June 2, 2024

Seems like this should be fixed in slf4j 2.0.13. I will try to upgrade.

should be in version 6.0.9.

from kotlin-logging.

MzrW avatar MzrW commented on June 2, 2024

When using slf4j version 2.0.13 the correct class name is logged.
@oshai feel free to close the issue.

from kotlin-logging.

oshai avatar oshai commented on June 2, 2024

Thanks!

from kotlin-logging.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.