logging
Bob Kline
bkline at rksystems.com
Wed Aug 30 10:12:46 EDT 2000
On Wed, 30 Aug 2000, bill dossett wrote:
> I hadn't looked that far down... sorry... Now I'm embarrased to say
> that I don't know how to call the procedure. I've only used the
> java.sql stuff.. this code was generated by dreamweaver ultradeva
> and I'm pretty much working backwards through it... how do I call
> the utils package? I'm using a jar file of the freetds_jdbc and all
> my attempts at trying to call setActive meet with undefined variable
> with and without the package name.
Here's what I stick in code that I anticipate I might need to debug:
Class.forName("com.internetcds.jdbc.tds.Driver");
try {
if (System.getProperty("TDS_LOG") != null)
com.internetcds.util.Logger.setActive(true);
}
catch (java.io.IOException e) {
System.err.println("can't log!");
e.printStackTrace();
}
That way I can turn on logging when I need it like this:
$ java -DTDS_LOG=YesPlease ....
--
Bob Kline
mailto:bkline at rksystems.com
http://www.rksystems.com
More information about the FreeTDS
mailing list