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

From: Brad DeJong <Brad(dot)Dejong(at)infor(dot)com>
To: Sergey Kim <skim(at)odin(dot)com>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Cc: Sergey Onuchin <sonuchin(at)odin(dot)com>
Subject: Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)
Date: 2016-12-09 13:17:44
Message-ID: F8F0ED16CB59F247B7EFD0E1DB34BC1F5CB5D4D6@USALWEXMBX3.infor.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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.

I just tested loglevel in PostgreSQL JDBC Driver 42.0.0.SNAPSHOT and including loglevel=2 in the JDBC connection string sets the loglevel correctly but the driver will only log messages if there is a valid LogWriter.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sergey Kim 2016-12-09 13:53:47 Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)
Previous Message Sergey Kim 2016-12-09 09:54:51 logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)