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

Поиск
Список
Период
Сортировка
От Chen Huajun
Тема Patch to add a new loglevel(OFF) to turn off logging
Дата
Msg-id 5122078C.90906@cn.fujitsu.com
обсуждение исходный текст
Ответы Re: Patch to add a new loglevel(OFF) to turn off logging  (Dave Cramer <pg@fastcrypt.com>)
Список 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



Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Bryan Varner
Дата:
Сообщение: Re: Working toward a JTA 1.0.1 Compliant XADataSource
Следующее
От: Alastair Burr
Дата:
Сообщение: JDBC - PreparedStatement reuse oddity when using setObject() with nulls and setTimestamp()