MariaDB JDBC客户端日志记录 [英] MariaDB JDBC Client Logging

查看:166
本文介绍了MariaDB JDBC客户端日志记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用MariaDB jdbc驱动程序在Java中记录查询 ?

Is there any way to log queries in java using the MariaDB jdbc driver?

我正在使用MySQL驱动程序

With the MySQL driver, I am using

profileSQL=true
logger=com.mysql.jdbc.log.Slf4JLogger

在开发人员机器上记录查询(使调试更加容易).

to log queries on dev machines (makes debugging a lot easier).

我意识到类似 log4jdbc 之类的东西存在-我需要使用类似的库吗? mariadb驱动程序有内置的东西吗?

I realize things like log4jdbc exist - do I need to use a library like that or does the mariadb driver have something built in?

推荐答案

从1.5.0版开始,

Since 1.5.0, log is supported.

这篇关于MariaDB JDBC客户端日志记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆