@wenshao 你好,想跟你请教个问题:请问DRUID支持LOG4J2了吗?
大佬请问为什么druid依赖log4j呢?
谢谢你的回答,我的配置如下,却并没有生效,是哪里的问题呢?
<loggers>
<logger name="tzbapi" additivity="true" level="info">
<appender-ref ref="apiRollingFile" /> </logger> <logger name="druid.sql" additivity="true" level="debug"> <appender-ref ref="Console" /> </logger> <logger name="druid.sql.DataSource" additivity="true" level="debug"> <appender-ref ref="Console" /> </logger> <logger name="druid.sql.Connection" additivity="true" level="debug"> <appender-ref ref="Console" /> </logger> <logger name="druid.sql.Statement" additivity="true" level="debug"> <appender-ref ref="Console" /> </logger> <logger name="druid.sql.ResultSet" additivity="true" level="debug"> <appender-ref ref="Console" /> </logger> <logger name="default" additivity="true"> <appender-ref ref="Console" /> </logger> <root level="debug"> <appender-ref ref="Console" /> </root> </loggers>
支持的,用最新版本是支持的 http://repo1.maven.org/maven2/com/alibaba/druid/1.0.16/
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(3)
大佬请问为什么druid依赖log4j呢?
谢谢你的回答,我的配置如下,却并没有生效,是哪里的问题呢?
<loggers>
<logger name="tzbapi" additivity="true" level="info">
<appender-ref ref="apiRollingFile" />
</logger>
<logger name="druid.sql" additivity="true" level="debug">
<appender-ref ref="Console" />
</logger>
<logger name="druid.sql.DataSource" additivity="true" level="debug">
<appender-ref ref="Console" />
</logger>
<logger name="druid.sql.Connection" additivity="true" level="debug">
<appender-ref ref="Console" />
</logger>
<logger name="druid.sql.Statement" additivity="true" level="debug">
<appender-ref ref="Console" />
</logger>
<logger name="druid.sql.ResultSet" additivity="true" level="debug">
<appender-ref ref="Console" />
</logger>
<logger name="default" additivity="true">
<appender-ref ref="Console" />
</logger>
<root level="debug">
<appender-ref ref="Console" />
</root>
</loggers>
支持的,用最新版本是支持的 http://repo1.maven.org/maven2/com/alibaba/druid/1.0.16/