Comments (5)
log打印的是语句所在的类, 所以没有错的
from druid.
main:JakartaCommonsLoggingImpl
这个是日志输出的类吗?应该是在DruidPoolConnectionFactory调用的log.error啊。类名应该是DruidPoolConnectionFactory,怎么会是当前选择的日志框架的实现呢,我用commons-logging,是没问题的
是这样的。如果我现在有一个类,jdbcutils,获取了log对象,那我现在log.warn("xxx");类名应该是JDBCUtils吧?
结果成了Log4jImpl或者JakartaCommonsLoggingImpl,不对吧。。
from druid.
看了一下代码,的确是写错了
from druid.
这个是为了不依赖Log库而作的去依赖处理,类似ibatis的做法,你有什么好建议么?
from druid.
实现类里面, 调用的时候,附上参数就可以的
可以参考一下nutz的写法
https://github.com/nutzam/nutz/blob/master/src/org/nutz/log/impl/Log4jLogAdapter.java
from druid.
Related Issues (20)
- WallFilter添加NoOpWallProvider实现或开放是否支持接口 HOT 4
- shrink方法中某个条件前后不一致 HOT 2
- 在Insert语句中columns添加注释不生效 HOT 1
- spring3.0.2以上版本+nacos +druid,配置nacos动态刷新后刷新任意一个无关的key都会导致druid连接断开并无法重连。 HOT 4
- 格式化打印注释问题 HOT 2
- SQL HOT 5
- 获取连接失败 HOT 3
- 这个问题很多年了springboot+druid+atomikos 长时间不使用数据库连接无法使用,多请求几次又可以使用了 HOT 5
- oracle.jdbc.ReadTimeout配置失效 HOT 2
- druid创建连接时报错 HOT 1
- 不支持mysql 5.7.6的ACCOUNT LOCK | ACCOUNT UNLOCK语法
- mysql SQLUtils.format sql中包含:name类型参数时 无法进行格式化
- Select语句解析注释时,最后一个字段的注释丢失 HOT 1
- Insert语句into括号里的字段不解析注释 HOT 1
- 不支持 PG SHOW search_path HOT 1
- SQLDataType的isInt()接口中没有对MEDIUMINT 类型放回 HOT 6
- 审批人、
- tomcat10+Springboot3+druid1.2.21异常
- version: 1.2.20 db: sqlserver 无法通过配置参数设置sqlserver的connectionTimeout(loginTimeout) 和 socketTimeout HOT 3
- druid配置数据源报错Access denied for user 'root'@ 通过工具连接时正常的,springboot项目启动就报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from druid.