From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Chen Huajun <chenhj(at)cn(dot)fujitsu(dot)com> |
Cc: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Patch to add a new loglevel(OFF) to turn off logging |
Date: | 2013-02-20 11:42:39 |
Message-ID: | CADK3HH+W22b517muJTtPAKXx_=KP98Db_Bj3NNAAyE6zynDMiQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Chen,
Thanks for the patch, it has been applied
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Mon, Feb 18, 2013 at 5:50 AM, Chen Huajun <chenhj(at)cn(dot)fujitsu(dot)com> wrote:
> 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
>
>
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2013-02-20 12:01:00 | Re: patch to avoid a NullPointerException |
Previous Message | Dave Cramer | 2013-02-19 18:15:02 | Re: JDBC - PreparedStatement reuse oddity when using setObject() with nulls and setTimestamp() |