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

From Chen Huajun
Subject Patch to add a new loglevel(OFF) to turn off logging
Date
Msg-id 5122078C.90906@cn.fujitsu.com
Whole thread Raw
Responses Re: Patch to add a new loglevel(OFF) to turn off logging  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
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



Attachment

pgsql-jdbc by date:

Previous
From: Bryan Varner
Date:
Subject: Re: Working toward a JTA 1.0.1 Compliant XADataSource
Next
From: Alastair Burr
Date:
Subject: JDBC - PreparedStatement reuse oddity when using setObject() with nulls and setTimestamp()