Is there any way to log queries in java using the MariaDB jdbc driver?
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).
I realize things like log4jdbc exist - do I need to use a library like that or does the mariadb driver have something built in?
Since 1.5.0, log is supported.
Currently there is no way to log sql queries from mariadb java client.
You can see this link: https://mariadb.com/kb/en/mariadb/client-libraries/mariadb-java-client/about-the-mariadb-java-client/
However an alternative is you can use dumpQueriesOnException if that can help.