From: | Sergey Kim <skim(at)odin(dot)com> |
---|---|
To: | Brad DeJong <Brad(dot)Dejong(at)infor(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:53:47 |
Message-ID: | DM2PR0201MB06879F1541795D1641DE23FCA5870@DM2PR0201MB0687.namprd02.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Dear Brad DeJong,
in stdlog we see messages:
log4j:ERROR Attempted to append to closed appender named [null].
The following fix gives solution: java.sql.DriverManager.setLogWriter(new java.io.PrintWriter(System.out));
But it is related to the code modification routines.
What should be do in order to preserve the code untouched and still have to JDBC logging available? We just replaced the driver.
Best Regards,
Sergey Kim
________________________________
From: Brad DeJong <Brad(dot)Dejong(at)infor(dot)com>
Sent: Friday, December 9, 2016 4:17:44 PM
To: Sergey Kim; pgsql-jdbc(at)postgresql(dot)org
Cc: Sergey Onuchin
Subject: RE: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Brad DeJong | 2016-12-09 14:14:17 | Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar) |
Previous Message | Brad DeJong | 2016-12-09 13:17:44 | Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar) |