Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CB22118AB for ; Sat, 19 Jul 2014 22:19:39 +0000 (UTC) Received: (qmail 25101 invoked by uid 500); 19 Jul 2014 22:19:38 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 24905 invoked by uid 500); 19 Jul 2014 22:19:38 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 24886 invoked by uid 99); 19 Jul 2014 22:19:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jul 2014 22:19:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of garydgregory@gmail.com designates 209.85.220.51 as permitted sender) Received: from [209.85.220.51] (HELO mail-pa0-f51.google.com) (209.85.220.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jul 2014 22:19:34 +0000 Received: by mail-pa0-f51.google.com with SMTP id ey11so7496478pad.38 for ; Sat, 19 Jul 2014 15:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3jz2RbuxrLnUe2HSt8w9YaC/haK6y/d4eO5bZMwHiSE=; b=aOPRjFB3scXis9yeURtvyvr5KFtfjd1k/mh2lhxxp/xdDgXHTjSO0yqArxU7+DnAbH dMenpC42D5ip/S0Hb73cxa2H3QX1L+vpNRn6/CCffvAtjTFhCCSSuhZPAIKkFOVju7Fx Jga0522dGTqjr7uKhvq/D3Z49ttLBC2JVQkHq9DM1bWx46gODmxeSv4oaGCO/u2+xJzL nOgHYuTUf98lgf/n99G1iVplSbnx9CEECIlMHAPCVhTC0nLdK1CPDh7KIOqpL7RobvBN DyEGk+BIM3KcmbVjQxqfA3k7MOSN3AHecgUuj98+NLEecEcVhlWtNGWALcrUliQZrCT6 saYw== MIME-Version: 1.0 X-Received: by 10.68.106.194 with SMTP id gw2mr3906721pbb.85.1405808354229; Sat, 19 Jul 2014 15:19:14 -0700 (PDT) Received: by 10.70.65.39 with HTTP; Sat, 19 Jul 2014 15:19:14 -0700 (PDT) In-Reply-To: References: Date: Sat, 19 Jul 2014 18:19:14 -0400 Message-ID: Subject: Re: Debugging JDBC From: Gary Gregory To: Log4J Developers List Content-Type: multipart/alternative; boundary=047d7b6dc7a693821e04fe93432b X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6dc7a693821e04fe93432b Content-Type: text/plain; charset=UTF-8 Sounds like a great new feature for 2.1. Gary On Sat, Jul 19, 2014 at 5:53 PM, Matt Sicker wrote: > Basically, you can get a PrintStream and a PrintWriter instance that uses > a Logger to write to instead of an actual OutputStream or Writer. It's an > additional jar, so it can be added on top of Log4j 2. > > > On 19 July 2014 16:44, Gary Gregory wrote: > >> Ah, right! >> >> Can't dig in now, but can that be added on top of Log4j 2 or does it have >> to be integrated _in_ log4j 2? >> >> Gary >> >> >> On Sat, Jul 19, 2014 at 5:12 PM, Matt Sicker wrote: >> >>> See branches/experimental/log4j-streams >>> >>> It's what Bruce and I worked on back when we were both newbies to >>> development here. >>> >>> >>> On 19 July 2014 16:01, Gary Gregory wrote: >>> >>>> JDBC has this API: >>>> >>>> java.sql.DriverManager.setLogWriter(PrintWriter) >>>> >>>> How can we use that to log to Log4j 2? >>>> >>>> Gary >>>> >>>> -- >>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org >>>> Java Persistence with Hibernate, Second Edition >>>> >>>> JUnit in Action, Second Edition >>>> Spring Batch in Action >>>> Blog: http://garygregory.wordpress.com >>>> Home: http://garygregory.com/ >>>> Tweet! http://twitter.com/GaryGregory >>>> >>> >>> >>> >>> -- >>> Matt Sicker >>> >> >> >> >> -- >> E-Mail: garydgregory@gmail.com | ggregory@apache.org >> Java Persistence with Hibernate, Second Edition >> >> JUnit in Action, Second Edition >> Spring Batch in Action >> Blog: http://garygregory.wordpress.com >> Home: http://garygregory.com/ >> Tweet! http://twitter.com/GaryGregory >> > > > > -- > Matt Sicker > -- E-Mail: garydgregory@gmail.com | ggregory@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --047d7b6dc7a693821e04fe93432b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sounds like a great new feature for 2.1.

Gary


On Sat, Jul 19, 2014 at 5:53 PM, Matt Sicker <boards@gmail.com> wrote:
Basically, you can get a Pr= intStream and a PrintWriter instance that uses a Logger to write to instead= of an actual OutputStream or Writer. It's an additional jar, so it can= be added on top of Log4j 2.


On 19 July 2014 16:44, Gary Gregory <= garydgregory@gm= ail.com> wrote:
Ah, right!

Can&= #39;t dig in now, but can that be added on top of Log4j 2 or does it have t= o be integrated _in_ log4j 2?

Gary


On Sat, Jul 19, 2014 at 5:12 PM, Matt Sicker <boards@gmail.com> wrote:
See branches/experimental/log4j-streams

It's wh= at Bruce and I worked on back when we were both newbies to development here= .


On 19 July 2014 16:01, Gary Gregory <garydgregory@gmail.com> wrote:



--
Matt Sicker <boards@gmail.com>



--



--
Matt Sicker <boards@gmail.com>



--
--047d7b6dc7a693821e04fe93432b--