Show Log

HelloI have a programme for connection to the database already developped. what is the easiest way to add a property to the programme to show all the logs during the connection to the database? I heard about verbose mode.is it the best and easiest way?
[266 byte] By [azadehhomayouna] at [2007-11-27 8:33:21]
# 1
check out log4j http://logging.apache.org/log4j/docs/index.html
suparenoa at 2007-7-12 20:29:28 > top of Java-index,Java Essentials,Java Programming...
# 2

You can try to enable the debug mode of your JDBC driver (if supported).

java.io.PrintWriter w =

new java.io.PrintWriter

(new java.io.OutputStreamWriter(System.out));

DriverManager.setLogWriter(w);

--

http://www.rgagnon.com/howto.html

RealHowToa at 2007-7-12 20:29:28 > top of Java-index,Java Essentials,Java Programming...