Re: logging bug in JDBC driver(https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar) - Mailing list pgsql-jdbc

From Brad DeJong
Subject Re: logging bug in JDBC driver(https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)
Date
Msg-id F8F0ED16CB59F247B7EFD0E1DB34BC1F5CB5D51D@USALWEXMBX3.infor.com
Whole thread Raw
In response to [JDBC] Re: logging bug in JDBC driver(https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)  (Sergey Kim <skim@odin.com>)
Responses Re: Re: logging bug in JDBC driver(https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)  (Jeremy Whiting <jwhiting@redhat.com>)
List pgsql-jdbc

Sergey Kim wrote:

> Brad DeJong wrote:

>> Sergey Kim wrote:

>>> ... (loglevel) parameter doesn't produce any messages ...

>> Please verify that your application calls java.sql.DriverManager.setLogWriter(PrintWriter) to set the log destination.

> The following fix gives solution: java.sql.DriverManager.setLogWriter(new java.io.PrintWriter(System.out));

> What should be do in order to preserve the code untouched and still have to JDBC logging available?

 

Sorry, that is a more difficult question. I am not aware of any way to set the log writer with a configuration parameter rather than by calling setLogWriter().

 

As for the change in pgjdbc behavior, I suggest creating an issue on https://github.com/pgjdbc/pgjdbc.

 

pgsql-jdbc by date:

Previous
From: Sergey Kim
Date:
Subject: Re: logging bug in JDBC driver(https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)
Next
From: Jan Motl
Date:
Subject: [JDBC] getTypeInfo