Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIhTT-0004uy-5e for pgsql-jdbc@arkaria.postgresql.org; Sun, 18 Dec 2016 19:50:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cIhTR-0005KN-QJ for pgsql-jdbc@arkaria.postgresql.org; Sun, 18 Dec 2016 19:50:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cIhKt-0004cl-LS for pgsql-jdbc@postgresql.org; Sun, 18 Dec 2016 19:41:31 +0000 Received: from mail-cys01nam02on0118.outbound.protection.outlook.com ([104.47.37.118] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cIhKk-0001CO-Rb for pgsql-jdbc@postgresql.org; Sun, 18 Dec 2016 19:41:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=SoftCom365.onmicrosoft.com; s=selector1-odin-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VsV/opDkIn8EKmjvggU5jx9Nq2iR6dK/OvJpD4LbU5s=; b=DOvLZETXgr0lGwSA1YMNPxLa/iCkiath9BypIa3XdAmcMwFdwf17vM90j5eEWU/7lksbZZIDhcrCekZQkqOtIdN3CV8CnVCTg4F5BIx0qN1UXEAV3l+Cfdqx+/ui4gBX7NpsN7T2Rc1CYSQEaY72iVSxdxPJJ/Yf4WvXiBC2rTA= Received: from DM2PR0201MB0687.namprd02.prod.outlook.com (10.160.94.152) by MWHPR02MB2463.namprd02.prod.outlook.com (10.168.204.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.9; Sun, 18 Dec 2016 19:41:19 +0000 Received: from DM2PR0201MB0687.namprd02.prod.outlook.com ([10.160.94.152]) by DM2PR0201MB0687.namprd02.prod.outlook.com ([10.160.94.152]) with mapi id 15.01.0789.014; Sun, 18 Dec 2016 19:41:18 +0000 From: Sergey Kim To: Jeremy Whiting CC: Brad DeJong , "pgsql-jdbc@postgresql.org" , Sergey Onuchin Subject: Re: Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar) Thread-Topic: [JDBC] Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar) Thread-Index: AQHSUgIrtgadQNEcmE+Hq3KLYLdGYaD/l5+ggAAHtB+AAASkMIAJkYYAgAAtSP+AATtXAIADifcx Date: Sun, 18 Dec 2016 19:41:17 +0000 Message-ID: References: <027a7987-01da-9f00-6e42-bf455fcc14c9@redhat.com> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=skim@odin.com; x-originating-ip: [132.245.15.229] x-microsoft-exchange-diagnostics: 1;MWHPR02MB2463;7:pBfF5kj20YEdjyRglMLLOu8GsPcC7iCX5BkUFnO1p/0G0NHv9SN7ihkyCaQp6Kr4zGJllrN7NsWjEuOU4TFHJUxUC/mTM2ThggTmyaEGneI0YI7609V6uW4WI1I9YvxPagO7u5HICCuzc5KaFH/IWrPaelK+rXK51rQy3cHGGwAC+RD2GHhwfVj5zmRwyHNu40EH6182MCfIJqPiH6VasyxidwCI/DVb6bE/ukcSulCyZAegN6rQUqrvixo2mZ+y+OGhMdMW/AsxW8RhVnOTOnLEBYE9B8T4aW+Q3sR+VGc1VE9XhqJHmCvnMVEawjZnMug+EJ8FykHlGh7ziIpVPQ5U53hYKnYd6Nbs6f14uszn1lowm0iyV8oHgTczlZ7evcByirYLIrCPO+HQEQrU3Ngfw++on+2pL7dNxeTsXhMwbn7wm0s9/ddoVDGa0DAjQeJR+w+lR5feudDqXVbnoA==;20:BKjMV11LJvnsX2va5F7OaCbdRg4qIyW+3Ynqh2MaX9nDO4dYG2/msRFGXI7fIJ8i/EsO9UHPdwCu2umMo0OK82CVdWgiX7WLIWDl1op9jqpLpaiVZAt9uzEWN7Hub/cHBENe+TbyKUMA5EgO8k/69gXDCpLPi/tQ6/gigHFSGK4= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10019020)(7916002)(39410400002)(39850400002)(39840400002)(39450400003)(5423002)(377454003)(199003)(24454002)(189002)(3660700001)(3280700002)(38730400001)(74316002)(77096006)(6436002)(68736007)(86362001)(110136003)(229853002)(345774005)(106356001)(6506006)(122556002)(93886004)(99286002)(106116001)(4001430100002)(8676002)(606005)(81156014)(81166006)(25786008)(92566002)(19627405001)(105586002)(8936002)(7906003)(2900100001)(33656002)(97736004)(5660300001)(7736002)(54356999)(189998001)(2950100002)(6916009)(107886002)(50986999)(76176999)(3846002)(102836003)(6116002)(790700001)(7696004)(66066001)(2906002)(9686002)(101416001)(4326007)(76576001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR02MB2463;H:DM2PR0201MB0687.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: 0e941ee1-a344-42cd-2113-08d4277dd60d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR02MB2463; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(179569009535045)(166708455590820)(189930954265078)(12332325008781); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148);SRVR:MWHPR02MB2463;BCL:0;PCL:0;RULEID:;SRVR:MWHPR02MB2463; x-forefront-prvs: 01604FB62B received-spf: None (protection.outlook.com: odin.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_DM2PR0201MB06873D91C398DAFEBBA2F602A59E0DM2PR0201MB0687_" MIME-Version: 1.0 X-OriginatorOrg: odin.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2016 19:41:17.8860 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b44641f9-e36e-4d7f-a3c4-eb3b991b6120 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2463 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --_000_DM2PR0201MB06873D91C398DAFEBBA2F602A59E0DM2PR0201MB0687_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Jeremy, ok, probably the decision is correct but I see there should be remarks done= in the documentation. We still see messages that is attempts to log messages in null appender. Wh= y not to log into standard common log. For instance the java.util.logging c= ould be used here. Best Regards, Sergey. ________________________________ From: Jeremy Whiting Sent: Friday, December 16, 2016 4:34:02 PM To: Sergey Kim Cc: Brad DeJong; pgsql-jdbc@postgresql.org; Sergey Onuchin Subject: Re: [JDBC] Re: logging bug in JDBC driver (https://jdbc.postgresql= .org/download/postgresql-9.4.1212.jar) Hi Sergey, The bad news is this will not be going into the mainline. I've had the dis= cussion in the past. The community decision at the time was devs should do = a local build to set a PrintWriter. I bear no grudges btw on this decision.= There are compelling reasons for it. So no, it won't be in any Maven repo any time soon. It exists on a branch on GitHub. Floating in the digital ether going nowhe= re. But you are welcome to copy and paste the code to build your own driver= artifact. Regards, Jeremy On 15/12/16 18:47, Sergey Kim wrote: Hi Jeremy, thank you for the good news. But will it able to receive the compiled version of the driver? Also it see= ms it should be published in public maven repositories. Right? Best Regards, Sergey Kim ________________________________ From: Jeremy Whiting Sent: Thursday, December 15, 2016 7:03:20 PM To: Brad DeJong; Sergey Kim Cc: pgsql-jdbc@postgresql.org; Sergey Onu= chin Subject: Re: [JDBC] Re: logging bug in JDBC driver (https://jdbc.postgresql= .org/download/postgresql-9.4.1212.jar) On 09/12/16 14:14, Brad DeJong wrote: 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.setLogW= riter(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 setLog= Writer(). As for the change in pgjdbc behavior, I suggest creating an issue on https:= //github.com/pgjdbc/pgjdbc. This has been raised before. See [1]. The advice to call setLogWriter() along with setLogLevel(...) is necessary= if using the api is an option. That does not work for url property configuring. I have a commit that ad= ds the ability to load a logLevel property on the URL here [2]. Based on 12= 12. Jeremy [1] https://github.com/pgjdbc/pgjdbc/issues/452 [2] https://github.com/whitingjr/pgjdbc/tree/logLevel2 --_000_DM2PR0201MB06873D91C398DAFEBBA2F602A59E0DM2PR0201MB0687_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi Jeremy,



ok, probably the decision is correct but I see there should be rema= rks done in the  documentation.


We still see messages that is attempts to log messages in null appender.= Why not to log into standard common log. For instance the java.util.loggin= g could be used here. 


Best Regards,

Sergey.


From: Jeremy Whiting <jw= hiting@redhat.com>
Sent: Friday, December 16, 2016 4:34:02 PM
To: Sergey Kim
Cc: Brad DeJong; pgsql-jdbc@postgresql.org; Sergey Onuchin
Subject: Re: [JDBC] Re: logging bug in JDBC driver (https://jdbc.pos= tgresql.org/download/postgresql-9.4.1212.jar)
 
Hi Sergey,
 The bad news is this will not be going into the mainline. I've had th= e discussion in the past. The community decision at the time was devs shoul= d do a local build to set a PrintWriter. I bear no grudges btw on this deci= sion. There are compelling reasons for it.

 So no, it won't be in any Maven repo any time soon.
 It exists on a branch on GitHub. Floating in the digital ether going = nowhere. But you are welcome to copy and paste the code to build your own d= river artifact.

Regards,
Jeremy

On 15/12/16 18:47, Sergey Kim wrote:

Hi Jeremy,


thank you for the good news.

But will it able to receive the compiled version of the driver? Also it = seems it should be published in public maven repositories. Right?



Best Regards,
Sergey Kim


From: Jeremy Whiting <= jwhiting@redhat.com>
Sent: Thursday, December 15, 2016 7:03:20 PM
To: Brad DeJong; Sergey Kim
Cc: pgsql-jdbc@postgresql.org; Sergey Onuchin
Subject: Re: [JDBC] Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar<= /a>)
 
On 09/12/16 14:14, Brad DeJong wrote:

  This has been raised before. See [1].

 The advice to call setLogWriter() along with setLogLevel(...) is nece= ssary if using the api is an option.

  That does not work for url property configuring.  I have a comm= it that adds the ability to load a logLevel property on the URL here [2]. B= ased on 1212.

Jeremy

[1]  https://github.com/pgjdbc/pgjdbc/issues/452
[2] https://github.com/whitingjr/pgjdbc/tree/logLevel2



--_000_DM2PR0201MB06873D91C398DAFEBBA2F602A59E0DM2PR0201MB0687_--