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 Gary Gregory <ga...@gmail.com> on 2014/09/02 16:21:07 UTC

log4j-streams and ExtendedLoggers

Some of the streams API take a org.apache.logging.log4j.Logger and cast it
to an org.apache.logging.log4j.spi.ExtendedLogger.

Why not just type to an ExtendedLoggers?

Gary

-- 
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

Re: log4j-streams and ExtendedLoggers

Posted by Matt Sicker <bo...@gmail.com>.
Yeah I think that'd be a good idea.


On 2 September 2014 09:49, Gary Gregory <ga...@gmail.com> wrote:

> So... should retype all of the methods that cast to ExtendedLogger and in
> turn their call sites?
>
> Gary
>
>
> On Tue, Sep 2, 2014 at 10:22 AM, Matt Sicker <bo...@gmail.com> wrote:
>
>> This was written before all that was done. I had to rename it from
>> LoggerProvider to ExtendedLogger even!
>>
>>
>> On 2 September 2014 09:21, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> Some of the streams API take a org.apache.logging.log4j.Logger and cast
>>> it to an org.apache.logging.log4j.spi.ExtendedLogger.
>>>
>>> Why not just type to an ExtendedLoggers?
>>>
>>> Gary
>>>
>>> --
>>> 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>
>>
>
>
>
> --
> 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: log4j-streams and ExtendedLoggers

Posted by Gary Gregory <ga...@gmail.com>.
So... should retype all of the methods that cast to ExtendedLogger and in
turn their call sites?

Gary


On Tue, Sep 2, 2014 at 10:22 AM, Matt Sicker <bo...@gmail.com> wrote:

> This was written before all that was done. I had to rename it from
> LoggerProvider to ExtendedLogger even!
>
>
> On 2 September 2014 09:21, Gary Gregory <ga...@gmail.com> wrote:
>
>> Some of the streams API take a org.apache.logging.log4j.Logger and cast
>> it to an org.apache.logging.log4j.spi.ExtendedLogger.
>>
>> Why not just type to an ExtendedLoggers?
>>
>> Gary
>>
>> --
>> 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>
>



-- 
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

Re: log4j-streams and ExtendedLoggers

Posted by Matt Sicker <bo...@gmail.com>.
This was written before all that was done. I had to rename it from
LoggerProvider to ExtendedLogger even!


On 2 September 2014 09:21, Gary Gregory <ga...@gmail.com> wrote:

> Some of the streams API take a org.apache.logging.log4j.Logger and cast it
> to an org.apache.logging.log4j.spi.ExtendedLogger.
>
> Why not just type to an ExtendedLoggers?
>
> Gary
>
> --
> 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>