Code Monkey home page Code Monkey logo

Comments (3)

Shyky avatar Shyky commented on August 20, 2024

如果你在基类中打印log看到的是基类的类名而不是子类的类名

from klog.

sweet2o09 avatar sweet2o09 commented on August 20, 2024

那是否有办法能看到子类的类名
[ (MainActivity.java:122)#logWithParams ]
在log上点击MainActivity.java:122,它会跳转到打印log的地方,如果能显示子类的类名的话,我就可以更加快速的定位该log的输出位置了

from klog.

Shyky avatar Shyky commented on August 20, 2024

暂时没有解决,你可以在父类中设计一个抽象方法,让子类去覆盖返回子类的类名,在父类中调用KLog.d方法中调用这个抽象的方法作为tag

from klog.

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.