You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Matt Sicker <bo...@gmail.com> on 2014/05/09 02:55:30 UTC

I think I've got a possible use for log4j-streams.

These are just from the JDK:

javax.sql.CommonDateSource: takes a PrintWriter for logging.
java.sql.DriverManager: same, also has deprecated PrintStream as well

I can't find anymore at the moment (JDK has like 1000 classes at this
point), but there's a start. That's not counting legacy APIs that people
use that also use a PrintStream or PrintWriter as a logger.

-- 
Matt Sicker <bo...@gmail.com>

Re: I think I've got a possible use for log4j-streams.

Posted by Matt Sicker <bo...@gmail.com>.
I know the Oracle Commerce framework (being as old as it is) has several
places where they use PrintStream or PrintWriter for loggers. That seems to
be a popular legacy-style product out there.


On 16 May 2014 09:27, Gary Gregory <ga...@gmail.com> wrote:

> There are other non-JDK APIs that take streams for debugging. I can't
> recall one ATM, but I've run into it.
>
> I thought we already could capture Sys err and Sys out and redirect that
> to our core?
>
> Gary
>
>
> On Thu, May 8, 2014 at 8:55 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> These are just from the JDK:
>>
>> javax.sql.CommonDateSource: takes a PrintWriter for logging.
>> java.sql.DriverManager: same, also has deprecated PrintStream as well
>>
>> I can't find anymore at the moment (JDK has like 1000 classes at this
>> point), but there's a start. That's not counting legacy APIs that people
>> use that also use a PrintStream or PrintWriter as a logger.
>>
>> --
>> Matt Sicker <bo...@gmail.com>
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Matt Sicker <bo...@gmail.com>

Re: I think I've got a possible use for log4j-streams.

Posted by Gary Gregory <ga...@gmail.com>.
There are other non-JDK APIs that take streams for debugging. I can't
recall one ATM, but I've run into it.

I thought we already could capture Sys err and Sys out and redirect that to
our core?

Gary


On Thu, May 8, 2014 at 8:55 PM, Matt Sicker <bo...@gmail.com> wrote:

> These are just from the JDK:
>
> javax.sql.CommonDateSource: takes a PrintWriter for logging.
> java.sql.DriverManager: same, also has deprecated PrintStream as well
>
> I can't find anymore at the moment (JDK has like 1000 classes at this
> point), but there's a start. That's not counting legacy APIs that people
> use that also use a PrintStream or PrintWriter as a logger.
>
> --
> Matt Sicker <bo...@gmail.com>
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory