Re: Patch to add a new loglevel(OFF) to turn off logging - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: Patch to add a new loglevel(OFF) to turn off logging
Date
Msg-id CADK3HH+W22b517muJTtPAKXx_=KP98Db_Bj3NNAAyE6zynDMiQ@mail.gmail.com
Whole thread Raw
In response to Patch to add a new loglevel(OFF) to turn off logging  (Chen Huajun <chenhj@cn.fujitsu.com>)
List pgsql-jdbc
Chen,

Thanks for the patch, it has been applied

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


On Mon, Feb 18, 2013 at 5:50 AM, Chen Huajun <chenhj@cn.fujitsu.com> wrote:
Hi,

As discussed before, adding a new loglevel explicitly
to turn off logging may be useful sometimes.

For example:
Driver.setLogLevel() ;//open a JVM level's logging
con = DriverManager.getConnection(connectionString)//want to turn off logging in this Connection

or
Driver.setLogLevel() ;//open logging
//do something
Driver.setLogLevel() ;//want to turn off logging
//do other things


And I have wrote a simple patch for that,
Hopefully this useful.

*)if be accepted,document about loglevel should be updated

--
Best Regards,
Chen Huajun




--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: JDBC - PreparedStatement reuse oddity when using setObject() with nulls and setTimestamp()
Next
From: Dave Cramer
Date:
Subject: Re: patch to avoid a NullPointerException