developerinlondon
Programmer
i want to be able to log the database queries that are made onto a file. Presently I have log4j installed and logging my classes.
I am using apache dbcp to make a database connection pool by configuring the context.xml file and calling it from the classes to run queries. would i need to subclass a dbcp class? (if so any examples?) or can i configure dbcp/jdbc driver to log the queries that are sent to it?
I am using apache dbcp to make a database connection pool by configuring the context.xml file and calling it from the classes to run queries. would i need to subclass a dbcp class? (if so any examples?) or can i configure dbcp/jdbc driver to log the queries that are sent to it?