Git Product home page Git Product logo

Comments (5)

wendal avatar wendal commented on August 28, 2024

log打印的是语句所在的类, 所以没有错的

from druid.

fivesmallq avatar fivesmallq commented on August 28, 2024

main:JakartaCommonsLoggingImpl
这个是日志输出的类吗?应该是在DruidPoolConnectionFactory调用的log.error啊。类名应该是DruidPoolConnectionFactory,怎么会是当前选择的日志框架的实现呢,我用commons-logging,是没问题的
是这样的。如果我现在有一个类,jdbcutils,获取了log对象,那我现在log.warn("xxx");类名应该是JDBCUtils吧?
结果成了Log4jImpl或者JakartaCommonsLoggingImpl,不对吧。。

from druid.

wendal avatar wendal commented on August 28, 2024

看了一下代码,的确是写错了

from druid.

wenshao avatar wenshao commented on August 28, 2024

这个是为了不依赖Log库而作的去依赖处理,类似ibatis的做法,你有什么好建议么?

from druid.

wendal avatar wendal commented on August 28, 2024

实现类里面, 调用的时候,附上参数就可以的
可以参考一下nutz的写法
https://github.com/nutzam/nutz/blob/master/src/org/nutz/log/impl/Log4jLogAdapter.java

from druid.

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.