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

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Patch to add a new loglevel(OFF) to turn off logging
Дата
Msg-id CADK3HH+W22b517muJTtPAKXx_=KP98Db_Bj3NNAAyE6zynDMiQ@mail.gmail.com
обсуждение исходный текст
Ответ на Patch to add a new loglevel(OFF) to turn off logging  (Chen Huajun <chenhj@cn.fujitsu.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: JDBC - PreparedStatement reuse oddity when using setObject() with nulls and setTimestamp()
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: patch to avoid a NullPointerException