Enable logging

How can I enable the logging of the driver for debugging?


Product: i-net Fositex
Date: Oct 29, 2008
Keywords:

If you have problems with the driver then you can enable the logging of the driver with: DriverManager.setLogStream( System.out ); or DriverManager.setLogStream( System.err );

The driver prints the messages to the default print streams (e.g. java console of the JDK or Browser).
You can also use any other PrintStream to make this output. This can be used if you cannot see the default PrintStreams (e.g. if you use the driver in a servlet or an Application Server).

PrintStream ps = new PrintStream( new FileOutputStream( "c:\\driver.log" ) );
DriverManager.setLogStream( ps );

The driver now prints the messages to the file that you specified. Please note: Please enable the logging only when you need it to find a problem because the driver has a better performance without the logging.

 

© Copyright 1996 - 2024, i-net software; All Rights Reserved.