Thread: Patch to add a new loglevel(OFF) to turn off logging

Patch to add a new loglevel(OFF) to turn off logging

From
Chen Huajun
Date:
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

Re: Patch to add a new loglevel(OFF) to turn off logging

From
Dave Cramer
Date:
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