Skip to Content.
Sympa Menu

freetds - Re: logging

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Bob Kline <bkline AT rksystems.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: logging
  • Date: Wed, 30 Aug 2000 10:12:46 -0400 (EDT)


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




  • Re: logging, bill dossett, 08/30/2000
    • <Possible follow-up(s)>
    • logging, bill dossett, 08/30/2000
    • Re: logging, Bob Kline, 08/30/2000
    • Re: logging, bill dossett, 08/30/2000
    • Re: logging, Bob Kline, 08/30/2000

Archive powered by MHonArc 2.6.24.

Top of Page