From: | Chen Huajun <chenhj(at)cn(dot)fujitsu(dot)com> |
---|---|
To: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Patch to add a new loglevel(OFF) to turn off logging |
Date: | 2013-02-18 10:50:52 |
Message-ID: | 5122078C.90906@cn.fujitsu.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
pgjdbc_new_loglevel_OFF.patch | text/plain | 1.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Alastair Burr | 2013-02-19 17:32:29 | JDBC - PreparedStatement reuse oddity when using setObject() with nulls and setTimestamp() |
Previous Message | Bryan Varner | 2013-02-17 00:52:58 | Re: Working toward a JTA 1.0.1 Compliant XADataSource |