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:54:49 UTC

org.apache.logging.log4j.streams.util

Any thoughts on folding the two classes in

org.apache.logging.log4j.streams.util

back into:

org.apache.logging.log4j.streams

They are both hard wired to an ExtendedLogger.

I could see those being a Core or API util package if they are to be in one.

Thoughts?

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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
Seems to me that org.apache.logging.log4j.io.LoggerStreams should have
"Builder" or "Factory" in the name. That would make it obvious as the
starting point.

Gary


On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:

> Pushed the great refactoring. Turned out better than expected!
>
>
> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>
>> I'm finding that there may be many different ways to expose this API
>> better than with constructors, and it's tough to choose a proper way to do
>> it. Each class can have its own builder (very repetitive; can't even
>> abstract it due to method chaining), or what I'm thinking might be useful
>> is a more generic builder system that creates the appropriate class based
>> on how it's configured. I'd like to take that approach, the java.io API
>> really shows its age with the huge lack of interfaces and other more
>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>> so I'm not surprised. ;)
>>
>> I'm going to have more time to work on things over the next two days as
>> I'm on "staycation" with not much planned. Should have something neat by
>> the weekend!
>>
>>
>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> Cool! I hope it's coming along nicely :-)
>>>
>>> Gary
>>>
>>>
>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>
>>>>
>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>
>>>>>>
>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>>>> prime candidate for the builder pattern.
>>>>>>>>
>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match
>>>>>>>> the java.io package that this module emulates. I think it's a
>>>>>>>> pretty neat package name now (especially with the foo.io domain
>>>>>>>> name fad going on), but if there are objections, we can always name it
>>>>>>>> something else.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>> of equal importance.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Done.
>>>>>>>>>
>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at
>>>>>>>>> Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>> quite a few.
>>>>>>>>>
>>>>>>>>> Gary
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>
>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>
>>>>>>>>>>> back into:
>>>>>>>>>>>
>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>
>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>
>>>>>>>>>>> I could see those being a Core or API util package if they are
>>>>>>>>>>> to be in one.
>>>>>>>>>>>
>>>>>>>>>>> Thoughts?
>>>>>>>>>>>
>>>>>>>>>>> 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>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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>
>>>>
>>>
>>>
>>>
>>> --
>>> 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>
>>
>
>
>
> --
> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
On Thu, Sep 4, 2014 at 4:42 PM, Gary Gregory <ga...@gmail.com> wrote:

>
>
>
> On Thu, Sep 4, 2014 at 4:11 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> I think you're on to something!
>>
>
> I would pick IoBuilder because echoing the package name is more obvious
> than echoing the module name.
>

And whether or not the package name is right is a different topic! ;-)

Gary


>
> Gary
>
>>
>>
>> On 4 September 2014 13:58, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> On Thu, Sep 4, 2014 at 2:10 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> Updated the test. And as for the class name, something short would be
>>>> nice.
>>>>
>>>
>>> - IoBuilder echoes the package name
>>> - IoStreamsBuilder echoes the module name
>>>
>>> ?
>>>
>>> Gary
>>>
>>>
>>>>
>>>>
>>>> On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> Whoops, I'll update that test. I didn't notice it.
>>>>>
>>>>>
>>>>> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> It looks like you did not update or push
>>>>>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>
>>>>>>> Pushed the great refactoring. Turned out better than expected!
>>>>>>>
>>>>>>>
>>>>>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>>
>>>>>>>> I'm finding that there may be many different ways to expose this
>>>>>>>> API better than with constructors, and it's tough to choose a proper way to
>>>>>>>> do it. Each class can have its own builder (very repetitive; can't even
>>>>>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>>>>>> is a more generic builder system that creates the appropriate class based
>>>>>>>> on how it's configured. I'd like to take that approach, the java.io
>>>>>>>> API really shows its age with the huge lack of interfaces and other more
>>>>>>>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>>>>>>>> so I'm not surprised. ;)
>>>>>>>>
>>>>>>>> I'm going to have more time to work on things over the next two
>>>>>>>> days as I'm on "staycation" with not much planned. Should have something
>>>>>>>> neat by the weekend!
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Cool! I hope it's coming along nicely :-)
>>>>>>>>>
>>>>>>>>> Gary
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for
>>>>>>>>>>> today.
>>>>>>>>>>>
>>>>>>>>>>> Gary
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3 September 2014 11:04, Gary Gregory <garydgregory@gmail.com
>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'll take a look at the constructors and such. I think this
>>>>>>>>>>>>>> is a prime candidate for the builder pattern.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to
>>>>>>>>>>>>>> match the java.io package that this module emulates. I think
>>>>>>>>>>>>>> it's a pretty neat package name now (especially with the
>>>>>>>>>>>>>> foo.io domain name fad going on), but if there are
>>>>>>>>>>>>>> objections, we can always name it something else.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <
>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <
>>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>>>>>>>> of equal importance.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Done.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look
>>>>>>>>>>>>>>> at Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>>>>>>>> quite a few.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <
>>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I could see those being a Core or API util package if they
>>>>>>>>>>>>>>>>> are to be in one.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> 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>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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>
>>
>
>
>
> --
> 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
>



-- 
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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
That's the reasoning behind me calling it LoggerStreams, actually.


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

> But it's a "builder" since it follows the builder pattern.
>
> Another approach is to follow the Java 7 style of naming certain
> util/factory classes like <SomeClass>s like Channels, Files, and so on.
>
> That would give us Streams.
>
> It goes back to "LoggerStreams" since it looks more "loggy" with the word
> Logger prefixed in there...
>
> It also depends on whether we do want "Factory" or "Builder" in the name.
>
> I like them all really. It would be nice to get some other opinions
> consensus...
>
> Thoughts?
>
> Gary
>
>
>
> On Thu, Sep 4, 2014 at 10:00 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> The only other idea I had was StreamFactory.
>>
>>
>> On 4 September 2014 15:50, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> I picked IoBuilder. Please fiddle or change as you see fit.
>>>
>>> Gary
>>>
>>>
>>> On Thu, Sep 4, 2014 at 4:42 PM, Gary Gregory <ga...@gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Thu, Sep 4, 2014 at 4:11 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> I think you're on to something!
>>>>>
>>>>
>>>> I would pick IoBuilder because echoing the package name is more obvious
>>>> than echoing the module name.
>>>>
>>>> Gary
>>>>
>>>>>
>>>>>
>>>>> On 4 September 2014 13:58, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> On Thu, Sep 4, 2014 at 2:10 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>
>>>>>>> Updated the test. And as for the class name, something short would
>>>>>>> be nice.
>>>>>>>
>>>>>>
>>>>>> - IoBuilder echoes the package name
>>>>>> - IoStreamsBuilder echoes the module name
>>>>>>
>>>>>> ?
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Whoops, I'll update that test. I didn't notice it.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> It looks like you did not update or push
>>>>>>>>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>>>>>>>>
>>>>>>>>> Gary
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Pushed the great refactoring. Turned out better than expected!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> I'm finding that there may be many different ways to expose this
>>>>>>>>>>> API better than with constructors, and it's tough to choose a proper way to
>>>>>>>>>>> do it. Each class can have its own builder (very repetitive; can't even
>>>>>>>>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>>>>>>>>> is a more generic builder system that creates the appropriate class based
>>>>>>>>>>> on how it's configured. I'd like to take that approach, the
>>>>>>>>>>> java.io API really shows its age with the huge lack of
>>>>>>>>>>> interfaces and other more "modern" Java idioms. Then again, even Java 1.4
>>>>>>>>>>> screwed up the logging API, so I'm not surprised. ;)
>>>>>>>>>>>
>>>>>>>>>>> I'm going to have more time to work on things over the next two
>>>>>>>>>>> days as I'm on "staycation" with not much planned. Should have something
>>>>>>>>>>> neat by the weekend!
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Cool! I hope it's coming along nicely :-)
>>>>>>>>>>>>
>>>>>>>>>>>> Gary
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I'm working on the constructors thing. Make the API a bit
>>>>>>>>>>>>> nicer.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 3 September 2014 12:19, Gary Gregory <
>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for
>>>>>>>>>>>>>> today.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <
>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 3 September 2014 11:04, Gary Gregory <
>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <
>>>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I'll take a look at the constructors and such. I think
>>>>>>>>>>>>>>>>> this is a prime candidate for the builder pattern.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io
>>>>>>>>>>>>>>>>> to match the java.io package that this module emulates. I
>>>>>>>>>>>>>>>>> think it's a pretty neat package name now (especially with the
>>>>>>>>>>>>>>>>> foo.io domain name fad going on), but if there are
>>>>>>>>>>>>>>>>> objections, we can always name it something else.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <
>>>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <
>>>>>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the
>>>>>>>>>>>>>>>>>>> JDK categorizes things sometimes. I wouldn't mind flattening them. They're
>>>>>>>>>>>>>>>>>>> all of equal importance.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Done.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can
>>>>>>>>>>>>>>>>>> look at Matt (or anyone) is how many of all the ctors we really need. There
>>>>>>>>>>>>>>>>>> are quite a few.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <
>>>>>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I could see those being a Core or API util package if
>>>>>>>>>>>>>>>>>>>> they are to be in one.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> 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>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>
>>>
>>>
>>> --
>>> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
But it's a "builder" since it follows the builder pattern.

Another approach is to follow the Java 7 style of naming certain
util/factory classes like <SomeClass>s like Channels, Files, and so on.

That would give us Streams.

It goes back to "LoggerStreams" since it looks more "loggy" with the word
Logger prefixed in there...

It also depends on whether we do want "Factory" or "Builder" in the name.

I like them all really. It would be nice to get some other opinions
consensus...

Thoughts?

Gary


On Thu, Sep 4, 2014 at 10:00 PM, Matt Sicker <bo...@gmail.com> wrote:

> The only other idea I had was StreamFactory.
>
>
> On 4 September 2014 15:50, Gary Gregory <ga...@gmail.com> wrote:
>
>> I picked IoBuilder. Please fiddle or change as you see fit.
>>
>> Gary
>>
>>
>> On Thu, Sep 4, 2014 at 4:42 PM, Gary Gregory <ga...@gmail.com>
>> wrote:
>>
>>>
>>>
>>>
>>> On Thu, Sep 4, 2014 at 4:11 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> I think you're on to something!
>>>>
>>>
>>> I would pick IoBuilder because echoing the package name is more obvious
>>> than echoing the module name.
>>>
>>> Gary
>>>
>>>>
>>>>
>>>> On 4 September 2014 13:58, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> On Thu, Sep 4, 2014 at 2:10 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> Updated the test. And as for the class name, something short would be
>>>>>> nice.
>>>>>>
>>>>>
>>>>> - IoBuilder echoes the package name
>>>>> - IoStreamsBuilder echoes the module name
>>>>>
>>>>> ?
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>> On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>
>>>>>>> Whoops, I'll update that test. I didn't notice it.
>>>>>>>
>>>>>>>
>>>>>>> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> It looks like you did not update or push
>>>>>>>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>>>>>>>
>>>>>>>> Gary
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Pushed the great refactoring. Turned out better than expected!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> I'm finding that there may be many different ways to expose this
>>>>>>>>>> API better than with constructors, and it's tough to choose a proper way to
>>>>>>>>>> do it. Each class can have its own builder (very repetitive; can't even
>>>>>>>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>>>>>>>> is a more generic builder system that creates the appropriate class based
>>>>>>>>>> on how it's configured. I'd like to take that approach, the
>>>>>>>>>> java.io API really shows its age with the huge lack of
>>>>>>>>>> interfaces and other more "modern" Java idioms. Then again, even Java 1.4
>>>>>>>>>> screwed up the logging API, so I'm not surprised. ;)
>>>>>>>>>>
>>>>>>>>>> I'm going to have more time to work on things over the next two
>>>>>>>>>> days as I'm on "staycation" with not much planned. Should have something
>>>>>>>>>> neat by the weekend!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Cool! I hope it's coming along nicely :-)
>>>>>>>>>>>
>>>>>>>>>>> Gary
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3 September 2014 12:19, Gary Gregory <garydgregory@gmail.com
>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for
>>>>>>>>>>>>> today.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <boards@gmail.com
>>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 3 September 2014 11:04, Gary Gregory <
>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <
>>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I'll take a look at the constructors and such. I think this
>>>>>>>>>>>>>>>> is a prime candidate for the builder pattern.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io
>>>>>>>>>>>>>>>> to match the java.io package that this module emulates. I
>>>>>>>>>>>>>>>> think it's a pretty neat package name now (especially with the
>>>>>>>>>>>>>>>> foo.io domain name fad going on), but if there are
>>>>>>>>>>>>>>>> objections, we can always name it something else.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <
>>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <
>>>>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the
>>>>>>>>>>>>>>>>>> JDK categorizes things sometimes. I wouldn't mind flattening them. They're
>>>>>>>>>>>>>>>>>> all of equal importance.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Done.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can
>>>>>>>>>>>>>>>>> look at Matt (or anyone) is how many of all the ctors we really need. There
>>>>>>>>>>>>>>>>> are quite a few.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <
>>>>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I could see those being a Core or API util package if
>>>>>>>>>>>>>>>>>>> they are to be in one.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> 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>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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>
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>> 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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
The only other idea I had was StreamFactory.


On 4 September 2014 15:50, Gary Gregory <ga...@gmail.com> wrote:

> I picked IoBuilder. Please fiddle or change as you see fit.
>
> Gary
>
>
> On Thu, Sep 4, 2014 at 4:42 PM, Gary Gregory <ga...@gmail.com>
> wrote:
>
>>
>>
>>
>> On Thu, Sep 4, 2014 at 4:11 PM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> I think you're on to something!
>>>
>>
>> I would pick IoBuilder because echoing the package name is more obvious
>> than echoing the module name.
>>
>> Gary
>>
>>>
>>>
>>> On 4 September 2014 13:58, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> On Thu, Sep 4, 2014 at 2:10 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> Updated the test. And as for the class name, something short would be
>>>>> nice.
>>>>>
>>>>
>>>> - IoBuilder echoes the package name
>>>> - IoStreamsBuilder echoes the module name
>>>>
>>>> ?
>>>>
>>>> Gary
>>>>
>>>>
>>>>>
>>>>>
>>>>> On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> Whoops, I'll update that test. I didn't notice it.
>>>>>>
>>>>>>
>>>>>> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> It looks like you did not update or push
>>>>>>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Pushed the great refactoring. Turned out better than expected!
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I'm finding that there may be many different ways to expose this
>>>>>>>>> API better than with constructors, and it's tough to choose a proper way to
>>>>>>>>> do it. Each class can have its own builder (very repetitive; can't even
>>>>>>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>>>>>>> is a more generic builder system that creates the appropriate class based
>>>>>>>>> on how it's configured. I'd like to take that approach, the
>>>>>>>>> java.io API really shows its age with the huge lack of interfaces
>>>>>>>>> and other more "modern" Java idioms. Then again, even Java 1.4 screwed up
>>>>>>>>> the logging API, so I'm not surprised. ;)
>>>>>>>>>
>>>>>>>>> I'm going to have more time to work on things over the next two
>>>>>>>>> days as I'm on "staycation" with not much planned. Should have something
>>>>>>>>> neat by the weekend!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Cool! I hope it's coming along nicely :-)
>>>>>>>>>>
>>>>>>>>>> Gary
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for
>>>>>>>>>>>> today.
>>>>>>>>>>>>
>>>>>>>>>>>> Gary
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 3 September 2014 11:04, Gary Gregory <
>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <boards@gmail.com
>>>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I'll take a look at the constructors and such. I think this
>>>>>>>>>>>>>>> is a prime candidate for the builder pattern.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io
>>>>>>>>>>>>>>> to match the java.io package that this module emulates. I
>>>>>>>>>>>>>>> think it's a pretty neat package name now (especially with the
>>>>>>>>>>>>>>> foo.io domain name fad going on), but if there are
>>>>>>>>>>>>>>> objections, we can always name it something else.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <
>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <
>>>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the
>>>>>>>>>>>>>>>>> JDK categorizes things sometimes. I wouldn't mind flattening them. They're
>>>>>>>>>>>>>>>>> all of equal importance.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Done.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can
>>>>>>>>>>>>>>>> look at Matt (or anyone) is how many of all the ctors we really need. There
>>>>>>>>>>>>>>>> are quite a few.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <
>>>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I could see those being a Core or API util package if
>>>>>>>>>>>>>>>>>> they are to be in one.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> 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>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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>
>>>
>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
I picked IoBuilder. Please fiddle or change as you see fit.

Gary


On Thu, Sep 4, 2014 at 4:42 PM, Gary Gregory <ga...@gmail.com> wrote:

>
>
>
> On Thu, Sep 4, 2014 at 4:11 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> I think you're on to something!
>>
>
> I would pick IoBuilder because echoing the package name is more obvious
> than echoing the module name.
>
> Gary
>
>>
>>
>> On 4 September 2014 13:58, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> On Thu, Sep 4, 2014 at 2:10 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> Updated the test. And as for the class name, something short would be
>>>> nice.
>>>>
>>>
>>> - IoBuilder echoes the package name
>>> - IoStreamsBuilder echoes the module name
>>>
>>> ?
>>>
>>> Gary
>>>
>>>
>>>>
>>>>
>>>> On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> Whoops, I'll update that test. I didn't notice it.
>>>>>
>>>>>
>>>>> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> It looks like you did not update or push
>>>>>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>
>>>>>>> Pushed the great refactoring. Turned out better than expected!
>>>>>>>
>>>>>>>
>>>>>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>>
>>>>>>>> I'm finding that there may be many different ways to expose this
>>>>>>>> API better than with constructors, and it's tough to choose a proper way to
>>>>>>>> do it. Each class can have its own builder (very repetitive; can't even
>>>>>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>>>>>> is a more generic builder system that creates the appropriate class based
>>>>>>>> on how it's configured. I'd like to take that approach, the java.io
>>>>>>>> API really shows its age with the huge lack of interfaces and other more
>>>>>>>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>>>>>>>> so I'm not surprised. ;)
>>>>>>>>
>>>>>>>> I'm going to have more time to work on things over the next two
>>>>>>>> days as I'm on "staycation" with not much planned. Should have something
>>>>>>>> neat by the weekend!
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Cool! I hope it's coming along nicely :-)
>>>>>>>>>
>>>>>>>>> Gary
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for
>>>>>>>>>>> today.
>>>>>>>>>>>
>>>>>>>>>>> Gary
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3 September 2014 11:04, Gary Gregory <garydgregory@gmail.com
>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'll take a look at the constructors and such. I think this
>>>>>>>>>>>>>> is a prime candidate for the builder pattern.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to
>>>>>>>>>>>>>> match the java.io package that this module emulates. I think
>>>>>>>>>>>>>> it's a pretty neat package name now (especially with the
>>>>>>>>>>>>>> foo.io domain name fad going on), but if there are
>>>>>>>>>>>>>> objections, we can always name it something else.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <
>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <
>>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>>>>>>>> of equal importance.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Done.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look
>>>>>>>>>>>>>>> at Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>>>>>>>> quite a few.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <
>>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I could see those being a Core or API util package if they
>>>>>>>>>>>>>>>>> are to be in one.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> 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>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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>
>>
>
>
>
> --
> 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
>



-- 
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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
On Thu, Sep 4, 2014 at 4:11 PM, Matt Sicker <bo...@gmail.com> wrote:

> I think you're on to something!
>

I would pick IoBuilder because echoing the package name is more obvious
than echoing the module name.

Gary

>
>
> On 4 September 2014 13:58, Gary Gregory <ga...@gmail.com> wrote:
>
>> On Thu, Sep 4, 2014 at 2:10 PM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> Updated the test. And as for the class name, something short would be
>>> nice.
>>>
>>
>> - IoBuilder echoes the package name
>> - IoStreamsBuilder echoes the module name
>>
>> ?
>>
>> Gary
>>
>>
>>>
>>>
>>> On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> Whoops, I'll update that test. I didn't notice it.
>>>>
>>>>
>>>> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> It looks like you did not update or push
>>>>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> Pushed the great refactoring. Turned out better than expected!
>>>>>>
>>>>>>
>>>>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>
>>>>>>> I'm finding that there may be many different ways to expose this API
>>>>>>> better than with constructors, and it's tough to choose a proper way to do
>>>>>>> it. Each class can have its own builder (very repetitive; can't even
>>>>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>>>>> is a more generic builder system that creates the appropriate class based
>>>>>>> on how it's configured. I'd like to take that approach, the java.io
>>>>>>> API really shows its age with the huge lack of interfaces and other more
>>>>>>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>>>>>>> so I'm not surprised. ;)
>>>>>>>
>>>>>>> I'm going to have more time to work on things over the next two days
>>>>>>> as I'm on "staycation" with not much planned. Should have something neat by
>>>>>>> the weekend!
>>>>>>>
>>>>>>>
>>>>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Cool! I hope it's coming along nicely :-)
>>>>>>>>
>>>>>>>> Gary
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for
>>>>>>>>>> today.
>>>>>>>>>>
>>>>>>>>>> Gary
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>>>>
>>>>>>>>>>>> Gary
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I'll take a look at the constructors and such. I think this is
>>>>>>>>>>>>> a prime candidate for the builder pattern.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to
>>>>>>>>>>>>> match the java.io package that this module emulates. I think
>>>>>>>>>>>>> it's a pretty neat package name now (especially with the
>>>>>>>>>>>>> foo.io domain name fad going on), but if there are
>>>>>>>>>>>>> objections, we can always name it something else.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <
>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <
>>>>>>>>>>>>>> boards@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>>>>>>> of equal importance.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Done.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look
>>>>>>>>>>>>>> at Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>>>>>>> quite a few.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <
>>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I could see those being a Core or API util package if they
>>>>>>>>>>>>>>>> are to be in one.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> 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>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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>
>>>>
>>>
>>>
>>>
>>> --
>>> 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>
>



-- 
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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
I think you're on to something!


On 4 September 2014 13:58, Gary Gregory <ga...@gmail.com> wrote:

> On Thu, Sep 4, 2014 at 2:10 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> Updated the test. And as for the class name, something short would be
>> nice.
>>
>
> - IoBuilder echoes the package name
> - IoStreamsBuilder echoes the module name
>
> ?
>
> Gary
>
>
>>
>>
>> On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> Whoops, I'll update that test. I didn't notice it.
>>>
>>>
>>> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> It looks like you did not update or push
>>>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>>>
>>>> Gary
>>>>
>>>>
>>>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> Pushed the great refactoring. Turned out better than expected!
>>>>>
>>>>>
>>>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> I'm finding that there may be many different ways to expose this API
>>>>>> better than with constructors, and it's tough to choose a proper way to do
>>>>>> it. Each class can have its own builder (very repetitive; can't even
>>>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>>>> is a more generic builder system that creates the appropriate class based
>>>>>> on how it's configured. I'd like to take that approach, the java.io
>>>>>> API really shows its age with the huge lack of interfaces and other more
>>>>>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>>>>>> so I'm not surprised. ;)
>>>>>>
>>>>>> I'm going to have more time to work on things over the next two days
>>>>>> as I'm on "staycation" with not much planned. Should have something neat by
>>>>>> the weekend!
>>>>>>
>>>>>>
>>>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Cool! I hope it's coming along nicely :-)
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>>>>>>
>>>>>>>>> Gary
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>>>
>>>>>>>>>>> Gary
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I'll take a look at the constructors and such. I think this is
>>>>>>>>>>>> a prime candidate for the builder pattern.
>>>>>>>>>>>>
>>>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to
>>>>>>>>>>>> match the java.io package that this module emulates. I think
>>>>>>>>>>>> it's a pretty neat package name now (especially with the foo.io
>>>>>>>>>>>> domain name fad going on), but if there are objections, we can always name
>>>>>>>>>>>> it something else.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <garydgregory@gmail.com
>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <boards@gmail.com
>>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>>>>>> of equal importance.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Done.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look
>>>>>>>>>>>>> at Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>>>>>> quite a few.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Gary
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <
>>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I could see those being a Core or API util package if they
>>>>>>>>>>>>>>> are to be in one.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 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>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> 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>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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>
>>>
>>
>>
>>
>> --
>> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
On Thu, Sep 4, 2014 at 2:10 PM, Matt Sicker <bo...@gmail.com> wrote:

> Updated the test. And as for the class name, something short would be nice.
>

- IoBuilder echoes the package name
- IoStreamsBuilder echoes the module name

?

Gary


>
>
> On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:
>
>> Whoops, I'll update that test. I didn't notice it.
>>
>>
>> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> It looks like you did not update or push
>>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>>
>>> Gary
>>>
>>>
>>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> Pushed the great refactoring. Turned out better than expected!
>>>>
>>>>
>>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> I'm finding that there may be many different ways to expose this API
>>>>> better than with constructors, and it's tough to choose a proper way to do
>>>>> it. Each class can have its own builder (very repetitive; can't even
>>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>>> is a more generic builder system that creates the appropriate class based
>>>>> on how it's configured. I'd like to take that approach, the java.io
>>>>> API really shows its age with the huge lack of interfaces and other more
>>>>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>>>>> so I'm not surprised. ;)
>>>>>
>>>>> I'm going to have more time to work on things over the next two days
>>>>> as I'm on "staycation" with not much planned. Should have something neat by
>>>>> the weekend!
>>>>>
>>>>>
>>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Cool! I hope it's coming along nicely :-)
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>
>>>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>>>
>>>>>>>
>>>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>>>>>
>>>>>>>> Gary
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>>
>>>>>>>>>> Gary
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>>>>>>> prime candidate for the builder pattern.
>>>>>>>>>>>
>>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to
>>>>>>>>>>> match the java.io package that this module emulates. I think
>>>>>>>>>>> it's a pretty neat package name now (especially with the foo.io
>>>>>>>>>>> domain name fad going on), but if there are objections, we can always name
>>>>>>>>>>> it something else.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>>>>> of equal importance.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Done.
>>>>>>>>>>>>
>>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at
>>>>>>>>>>>> Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>>>>> quite a few.
>>>>>>>>>>>>
>>>>>>>>>>>> Gary
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <
>>>>>>>>>>>>> garydgregory@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I could see those being a Core or API util package if they
>>>>>>>>>>>>>> are to be in one.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 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>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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>
>>
>
>
>
> --
> 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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
Updated the test. And as for the class name, something short would be nice.


On 4 September 2014 12:23, Matt Sicker <bo...@gmail.com> wrote:

> Whoops, I'll update that test. I didn't notice it.
>
>
> On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com> wrote:
>
>> It looks like you did not update or push
>> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>>
>> Gary
>>
>>
>> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> Pushed the great refactoring. Turned out better than expected!
>>>
>>>
>>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> I'm finding that there may be many different ways to expose this API
>>>> better than with constructors, and it's tough to choose a proper way to do
>>>> it. Each class can have its own builder (very repetitive; can't even
>>>> abstract it due to method chaining), or what I'm thinking might be useful
>>>> is a more generic builder system that creates the appropriate class based
>>>> on how it's configured. I'd like to take that approach, the java.io
>>>> API really shows its age with the huge lack of interfaces and other more
>>>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>>>> so I'm not surprised. ;)
>>>>
>>>> I'm going to have more time to work on things over the next two days as
>>>> I'm on "staycation" with not much planned. Should have something neat by
>>>> the weekend!
>>>>
>>>>
>>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> Cool! I hope it's coming along nicely :-)
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>>
>>>>>>
>>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>>
>>>>>>>>> Gary
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>>>>>> prime candidate for the builder pattern.
>>>>>>>>>>
>>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to
>>>>>>>>>> match the java.io package that this module emulates. I think
>>>>>>>>>> it's a pretty neat package name now (especially with the foo.io
>>>>>>>>>> domain name fad going on), but if there are objections, we can always name
>>>>>>>>>> it something else.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>>>> of equal importance.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Done.
>>>>>>>>>>>
>>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at
>>>>>>>>>>> Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>>>> quite a few.
>>>>>>>>>>>
>>>>>>>>>>> Gary
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <garydgregory@gmail.com
>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>>
>>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>>
>>>>>>>>>>>>> back into:
>>>>>>>>>>>>>
>>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>>
>>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I could see those being a Core or API util package if they are
>>>>>>>>>>>>> to be in one.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>>
>>>>>>>>>>>>> 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>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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>
>>>>
>>>
>>>
>>>
>>> --
>>> 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>
>



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

Re: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
Whoops, I'll update that test. I didn't notice it.


On 4 September 2014 12:18, Gary Gregory <ga...@gmail.com> wrote:

> It looks like you did not update or push
> org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test
>
> Gary
>
>
> On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> Pushed the great refactoring. Turned out better than expected!
>>
>>
>> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> I'm finding that there may be many different ways to expose this API
>>> better than with constructors, and it's tough to choose a proper way to do
>>> it. Each class can have its own builder (very repetitive; can't even
>>> abstract it due to method chaining), or what I'm thinking might be useful
>>> is a more generic builder system that creates the appropriate class based
>>> on how it's configured. I'd like to take that approach, the java.io API
>>> really shows its age with the huge lack of interfaces and other more
>>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>>> so I'm not surprised. ;)
>>>
>>> I'm going to have more time to work on things over the next two days as
>>> I'm on "staycation" with not much planned. Should have something neat by
>>> the weekend!
>>>
>>>
>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> Cool! I hope it's coming along nicely :-)
>>>>
>>>> Gary
>>>>
>>>>
>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>>
>>>>>
>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>>
>>>>>>>
>>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>>
>>>>>>>> Gary
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>>>>> prime candidate for the builder pattern.
>>>>>>>>>
>>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to
>>>>>>>>> match the java.io package that this module emulates. I think it's
>>>>>>>>> a pretty neat package name now (especially with the foo.io domain
>>>>>>>>> name fad going on), but if there are objections, we can always name it
>>>>>>>>> something else.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>>> of equal importance.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Done.
>>>>>>>>>>
>>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at
>>>>>>>>>> Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>>> quite a few.
>>>>>>>>>>
>>>>>>>>>> Gary
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>>
>>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>>
>>>>>>>>>>>> back into:
>>>>>>>>>>>>
>>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>>
>>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>>
>>>>>>>>>>>> I could see those being a Core or API util package if they are
>>>>>>>>>>>> to be in one.
>>>>>>>>>>>>
>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>
>>>>>>>>>>>> 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>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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>
>>>
>>
>>
>>
>> --
>> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
It looks like you did not update or push
org.apache.logging.log4j.io.LoggerPrintWriterJdbcH2Test

Gary


On Thu, Sep 4, 2014 at 1:02 PM, Matt Sicker <bo...@gmail.com> wrote:

> Pushed the great refactoring. Turned out better than expected!
>
>
> On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:
>
>> I'm finding that there may be many different ways to expose this API
>> better than with constructors, and it's tough to choose a proper way to do
>> it. Each class can have its own builder (very repetitive; can't even
>> abstract it due to method chaining), or what I'm thinking might be useful
>> is a more generic builder system that creates the appropriate class based
>> on how it's configured. I'd like to take that approach, the java.io API
>> really shows its age with the huge lack of interfaces and other more
>> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
>> so I'm not surprised. ;)
>>
>> I'm going to have more time to work on things over the next two days as
>> I'm on "staycation" with not much planned. Should have something neat by
>> the weekend!
>>
>>
>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> Cool! I hope it's coming along nicely :-)
>>>
>>> Gary
>>>
>>>
>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>
>>>>
>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>
>>>>>>
>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>>>> prime candidate for the builder pattern.
>>>>>>>>
>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match
>>>>>>>> the java.io package that this module emulates. I think it's a
>>>>>>>> pretty neat package name now (especially with the foo.io domain
>>>>>>>> name fad going on), but if there are objections, we can always name it
>>>>>>>> something else.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>> of equal importance.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Done.
>>>>>>>>>
>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at
>>>>>>>>> Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>> quite a few.
>>>>>>>>>
>>>>>>>>> Gary
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>
>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>
>>>>>>>>>>> back into:
>>>>>>>>>>>
>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>
>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>
>>>>>>>>>>> I could see those being a Core or API util package if they are
>>>>>>>>>>> to be in one.
>>>>>>>>>>>
>>>>>>>>>>> Thoughts?
>>>>>>>>>>>
>>>>>>>>>>> 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>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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>
>>>>
>>>
>>>
>>>
>>> --
>>> 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>
>>
>
>
>
> --
> 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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
Pushed the great refactoring. Turned out better than expected!


On 3 September 2014 20:58, Matt Sicker <bo...@gmail.com> wrote:

> I'm finding that there may be many different ways to expose this API
> better than with constructors, and it's tough to choose a proper way to do
> it. Each class can have its own builder (very repetitive; can't even
> abstract it due to method chaining), or what I'm thinking might be useful
> is a more generic builder system that creates the appropriate class based
> on how it's configured. I'd like to take that approach, the java.io API
> really shows its age with the huge lack of interfaces and other more
> "modern" Java idioms. Then again, even Java 1.4 screwed up the logging API,
> so I'm not surprised. ;)
>
> I'm going to have more time to work on things over the next two days as
> I'm on "staycation" with not much planned. Should have something neat by
> the weekend!
>
>
> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:
>
>> Cool! I hope it's coming along nicely :-)
>>
>> Gary
>>
>>
>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>
>>>
>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>
>>>> Gary
>>>>
>>>>
>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>
>>>>>
>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Then what about matching the module name? log4j-io?
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>
>>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>>> prime candidate for the builder pattern.
>>>>>>>
>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match
>>>>>>> the java.io package that this module emulates. I think it's a
>>>>>>> pretty neat package name now (especially with the foo.io domain
>>>>>>> name fad going on), but if there are objections, we can always name it
>>>>>>> something else.
>>>>>>>
>>>>>>>
>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>> of equal importance.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Done.
>>>>>>>>
>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at
>>>>>>>> Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>> quite a few.
>>>>>>>>
>>>>>>>> Gary
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>
>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>
>>>>>>>>>> back into:
>>>>>>>>>>
>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>
>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>
>>>>>>>>>> I could see those being a Core or API util package if they are to
>>>>>>>>>> be in one.
>>>>>>>>>>
>>>>>>>>>> Thoughts?
>>>>>>>>>>
>>>>>>>>>> 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>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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>
>>>
>>
>>
>>
>> --
>> 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>
>



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

Re: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
I'm finding that there may be many different ways to expose this API better
than with constructors, and it's tough to choose a proper way to do it.
Each class can have its own builder (very repetitive; can't even abstract
it due to method chaining), or what I'm thinking might be useful is a more
generic builder system that creates the appropriate class based on how it's
configured. I'd like to take that approach, the java.io API really shows
its age with the huge lack of interfaces and other more "modern" Java
idioms. Then again, even Java 1.4 screwed up the logging API, so I'm not
surprised. ;)

I'm going to have more time to work on things over the next two days as I'm
on "staycation" with not much planned. Should have something neat by the
weekend!


On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:

> Cool! I hope it's coming along nicely :-)
>
> Gary
>
>
> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> I'm working on the constructors thing. Make the API a bit nicer.
>>
>>
>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>
>>> Gary
>>>
>>>
>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> That's still a possibility, but I'm still not sold on it.
>>>>
>>>>
>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> Then what about matching the module name? log4j-io?
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>> prime candidate for the builder pattern.
>>>>>>
>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match
>>>>>> the java.io package that this module emulates. I think it's a pretty
>>>>>> neat package name now (especially with the foo.io domain name fad
>>>>>> going on), but if there are objections, we can always name it something
>>>>>> else.
>>>>>>
>>>>>>
>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>> of equal importance.
>>>>>>>>
>>>>>>>
>>>>>>> Done.
>>>>>>>
>>>>>>> I'm going to sleep now (1am here) but one thing you can look at Matt
>>>>>>> (or anyone) is how many of all the ctors we really need. There are quite a
>>>>>>> few.
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>
>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>
>>>>>>>>> back into:
>>>>>>>>>
>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>
>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>
>>>>>>>>> I could see those being a Core or API util package if they are to
>>>>>>>>> be in one.
>>>>>>>>>
>>>>>>>>> Thoughts?
>>>>>>>>>
>>>>>>>>> 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>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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>
>>
>
>
>
> --
> 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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
log4j-jio? I like iostreams with the io package even if it's slightly
inconsistent with the rest of the modules.


On 9 September 2014 10:03, Remko Popma <re...@gmail.com> wrote:

> For what it's worth, I kind of like log4j-iostreams. I also like short
> packages, but an alternative would be to call the package iostreams...
>
> Sent from my iPhone
>
> On 2014/09/09, at 23:31, Gary Gregory <ga...@gmail.com> wrote:
>
> OK, so,
>
> The package is org.apache.logging.log4j.io.IoBuilder
> The class is IoBuilder
> The module is log4j-iostreams
>
> IMO the module name is out of sync with the rest, how about: log4j-javaio,
> log4j-java.io, log4j-io?
>
> Gary
>
> On Tue, Sep 9, 2014 at 10:10 AM, Matt Sicker <bo...@gmail.com> wrote:
>
>> It's the IoBuilder class! :)
>>
>>
>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> Cool! I hope it's coming along nicely :-)
>>>
>>> Gary
>>>
>>>
>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>>
>>>>
>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>>
>>>>>>
>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>>>> prime candidate for the builder pattern.
>>>>>>>>
>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match
>>>>>>>> the java.io package that this module emulates. I think it's a
>>>>>>>> pretty neat package name now (especially with the foo.io domain
>>>>>>>> name fad going on), but if there are objections, we can always name it
>>>>>>>> something else.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>>> of equal importance.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Done.
>>>>>>>>>
>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at
>>>>>>>>> Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>>> quite a few.
>>>>>>>>>
>>>>>>>>> Gary
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>>
>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>>
>>>>>>>>>>> back into:
>>>>>>>>>>>
>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>>
>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>>
>>>>>>>>>>> I could see those being a Core or API util package if they are
>>>>>>>>>>> to be in one.
>>>>>>>>>>>
>>>>>>>>>>> Thoughts?
>>>>>>>>>>>
>>>>>>>>>>> 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>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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>
>>>>
>>>
>>>
>>>
>>> --
>>> 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: org.apache.logging.log4j.streams.util

Posted by Remko Popma <re...@gmail.com>.
For what it's worth, I kind of like log4j-iostreams. I also like short packages, but an alternative would be to call the package iostreams... 

Sent from my iPhone

> On 2014/09/09, at 23:31, Gary Gregory <ga...@gmail.com> wrote:
> 
> OK, so,
> 
> The package is org.apache.logging.log4j.io.IoBuilder
> The class is IoBuilder
> The module is log4j-iostreams
> 
> IMO the module name is out of sync with the rest, how about: log4j-javaio, log4j-java.io, log4j-io?
> 
> Gary
> 
>> On Tue, Sep 9, 2014 at 10:10 AM, Matt Sicker <bo...@gmail.com> wrote:
>> It's the IoBuilder class! :)
>> 
>> 
>>> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:
>> 
>>> Cool! I hope it's coming along nicely :-) 
>>> 
>>> Gary
>>> 
>>> 
>>>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>> 
>>>> 
>>>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>> 
>>>>> Gary
>>>>> 
>>>>> 
>>>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>> 
>>>>>> 
>>>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com> wrote:
>>>>>>> Then what about matching the module name? log4j-io?
>>>>>>> 
>>>>>>> Gary
>>>>>>> 
>>>>>>> 
>>>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>>> I'll take a look at the constructors and such. I think this is a prime candidate for the builder pattern.
>>>>>>>> 
>>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match the java.io package that this module emulates. I think it's a pretty neat package name now (especially with the foo.io domain name fad going on), but if there are objections, we can always name it something else.
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com> wrote:
>>>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK categorizes things sometimes. I wouldn't mind flattening them. They're all of equal importance.
>>>>>>>>> 
>>>>>>>>> Done.
>>>>>>>>> 
>>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at Matt (or anyone) is how many of all the ctors we really need. There are quite a few.
>>>>>>>>> 
>>>>>>>>> Gary
>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com> wrote:
>>>>>>>>>>> Any thoughts on folding the two classes in 
>>>>>>>>>>> 
>>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>> 
>>>>>>>>>>> back into:
>>>>>>>>>>> 
>>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>> 
>>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>> 
>>>>>>>>>>> I could see those being a Core or API util package if they are to be in one.
>>>>>>>>>>> 
>>>>>>>>>>> Thoughts?
>>>>>>>>>>> 
>>>>>>>>>>> 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 <bo...@gmail.com>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> -- 
>>>>>>>>> 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 <bo...@gmail.com>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> -- 
>>>>>>> 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 <bo...@gmail.com>
>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> 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 <bo...@gmail.com>
>>> 
>>> 
>>> 
>>> -- 
>>> 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 <bo...@gmail.com>
> 
> 
> 
> -- 
> 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

Re: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
OK, so,

The package is org.apache.logging.log4j.io.IoBuilder
The class is IoBuilder
The module is log4j-iostreams

IMO the module name is out of sync with the rest, how about: log4j-javaio,
log4j-java.io, log4j-io?

Gary

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

> It's the IoBuilder class! :)
>
>
> On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:
>
>> Cool! I hope it's coming along nicely :-)
>>
>> Gary
>>
>>
>> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> I'm working on the constructors thing. Make the API a bit nicer.
>>>
>>>
>>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>>
>>>> Gary
>>>>
>>>>
>>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> That's still a possibility, but I'm still not sold on it.
>>>>>
>>>>>
>>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Then what about matching the module name? log4j-io?
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>>
>>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>>> prime candidate for the builder pattern.
>>>>>>>
>>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match
>>>>>>> the java.io package that this module emulates. I think it's a
>>>>>>> pretty neat package name now (especially with the foo.io domain
>>>>>>> name fad going on), but if there are objections, we can always name it
>>>>>>> something else.
>>>>>>>
>>>>>>>
>>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>>> of equal importance.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Done.
>>>>>>>>
>>>>>>>> I'm going to sleep now (1am here) but one thing you can look at
>>>>>>>> Matt (or anyone) is how many of all the ctors we really need. There are
>>>>>>>> quite a few.
>>>>>>>>
>>>>>>>> Gary
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>>
>>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>>
>>>>>>>>>> back into:
>>>>>>>>>>
>>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>>
>>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>>
>>>>>>>>>> I could see those being a Core or API util package if they are to
>>>>>>>>>> be in one.
>>>>>>>>>>
>>>>>>>>>> Thoughts?
>>>>>>>>>>
>>>>>>>>>> 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>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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>
>>>
>>
>>
>>
>> --
>> 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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
It's the IoBuilder class! :)


On 3 September 2014 17:44, Gary Gregory <ga...@gmail.com> wrote:

> Cool! I hope it's coming along nicely :-)
>
> Gary
>
>
> On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> I'm working on the constructors thing. Make the API a bit nicer.
>>
>>
>> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>>
>>> Gary
>>>
>>>
>>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> That's still a possibility, but I'm still not sold on it.
>>>>
>>>>
>>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> Then what about matching the module name? log4j-io?
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> I'll take a look at the constructors and such. I think this is a
>>>>>> prime candidate for the builder pattern.
>>>>>>
>>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match
>>>>>> the java.io package that this module emulates. I think it's a pretty
>>>>>> neat package name now (especially with the foo.io domain name fad
>>>>>> going on), but if there are objections, we can always name it something
>>>>>> else.
>>>>>>
>>>>>>
>>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>>> of equal importance.
>>>>>>>>
>>>>>>>
>>>>>>> Done.
>>>>>>>
>>>>>>> I'm going to sleep now (1am here) but one thing you can look at Matt
>>>>>>> (or anyone) is how many of all the ctors we really need. There are quite a
>>>>>>> few.
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>>
>>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>>
>>>>>>>>> back into:
>>>>>>>>>
>>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>>
>>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>>
>>>>>>>>> I could see those being a Core or API util package if they are to
>>>>>>>>> be in one.
>>>>>>>>>
>>>>>>>>> Thoughts?
>>>>>>>>>
>>>>>>>>> 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>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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>
>>
>
>
>
> --
> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
Cool! I hope it's coming along nicely :-)

Gary


On Wed, Sep 3, 2014 at 3:16 PM, Matt Sicker <bo...@gmail.com> wrote:

> I'm working on the constructors thing. Make the API a bit nicer.
>
>
> On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:
>
>> Matt, feel free to whack on iostreams, I'm done in there for today.
>>
>> Gary
>>
>>
>> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> That's still a possibility, but I'm still not sold on it.
>>>
>>>
>>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> Then what about matching the module name? log4j-io?
>>>>
>>>> Gary
>>>>
>>>>
>>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> I'll take a look at the constructors and such. I think this is a prime
>>>>> candidate for the builder pattern.
>>>>>
>>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match
>>>>> the java.io package that this module emulates. I think it's a pretty
>>>>> neat package name now (especially with the foo.io domain name fad
>>>>> going on), but if there are objections, we can always name it something
>>>>> else.
>>>>>
>>>>>
>>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>>> of equal importance.
>>>>>>>
>>>>>>
>>>>>> Done.
>>>>>>
>>>>>> I'm going to sleep now (1am here) but one thing you can look at Matt
>>>>>> (or anyone) is how many of all the ctors we really need. There are quite a
>>>>>> few.
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Any thoughts on folding the two classes in
>>>>>>>>
>>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>>
>>>>>>>> back into:
>>>>>>>>
>>>>>>>> org.apache.logging.log4j.streams
>>>>>>>>
>>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>>
>>>>>>>> I could see those being a Core or API util package if they are to
>>>>>>>> be in one.
>>>>>>>>
>>>>>>>> Thoughts?
>>>>>>>>
>>>>>>>> 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>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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>
>



-- 
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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
I'm working on the constructors thing. Make the API a bit nicer.


On 3 September 2014 12:19, Gary Gregory <ga...@gmail.com> wrote:

> Matt, feel free to whack on iostreams, I'm done in there for today.
>
> Gary
>
>
> On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:
>
>> That's still a possibility, but I'm still not sold on it.
>>
>>
>> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> Then what about matching the module name? log4j-io?
>>>
>>> Gary
>>>
>>>
>>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> I'll take a look at the constructors and such. I think this is a prime
>>>> candidate for the builder pattern.
>>>>
>>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match the
>>>> java.io package that this module emulates. I think it's a pretty neat
>>>> package name now (especially with the foo.io domain name fad going
>>>> on), but if there are objections, we can always name it something else.
>>>>
>>>>
>>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>>
>>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>>> of equal importance.
>>>>>>
>>>>>
>>>>> Done.
>>>>>
>>>>> I'm going to sleep now (1am here) but one thing you can look at Matt
>>>>> (or anyone) is how many of all the ctors we really need. There are quite a
>>>>> few.
>>>>>
>>>>> Gary
>>>>>
>>>>>
>>>>>>
>>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Any thoughts on folding the two classes in
>>>>>>>
>>>>>>> org.apache.logging.log4j.streams.util
>>>>>>>
>>>>>>> back into:
>>>>>>>
>>>>>>> org.apache.logging.log4j.streams
>>>>>>>
>>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>>
>>>>>>> I could see those being a Core or API util package if they are to be
>>>>>>> in one.
>>>>>>>
>>>>>>> Thoughts?
>>>>>>>
>>>>>>> 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>
>>>>
>>>
>>>
>>>
>>> --
>>> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
Matt, feel free to whack on iostreams, I'm done in there for today.

Gary


On Wed, Sep 3, 2014 at 12:13 PM, Matt Sicker <bo...@gmail.com> wrote:

> That's still a possibility, but I'm still not sold on it.
>
>
> On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com> wrote:
>
>> Then what about matching the module name? log4j-io?
>>
>> Gary
>>
>>
>> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> I'll take a look at the constructors and such. I think this is a prime
>>> candidate for the builder pattern.
>>>
>>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match the
>>> java.io package that this module emulates. I think it's a pretty neat
>>> package name now (especially with the foo.io domain name fad going on),
>>> but if there are objections, we can always name it something else.
>>>
>>>
>>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>> They almost seem like SPI classes in a sense of how the JDK
>>>>> categorizes things sometimes. I wouldn't mind flattening them. They're all
>>>>> of equal importance.
>>>>>
>>>>
>>>> Done.
>>>>
>>>> I'm going to sleep now (1am here) but one thing you can look at Matt
>>>> (or anyone) is how many of all the ctors we really need. There are quite a
>>>> few.
>>>>
>>>> Gary
>>>>
>>>>
>>>>>
>>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Any thoughts on folding the two classes in
>>>>>>
>>>>>> org.apache.logging.log4j.streams.util
>>>>>>
>>>>>> back into:
>>>>>>
>>>>>> org.apache.logging.log4j.streams
>>>>>>
>>>>>> They are both hard wired to an ExtendedLogger.
>>>>>>
>>>>>> I could see those being a Core or API util package if they are to be
>>>>>> in one.
>>>>>>
>>>>>> Thoughts?
>>>>>>
>>>>>> 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>
>>>
>>
>>
>>
>> --
>> 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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
That's still a possibility, but I'm still not sold on it.


On 3 September 2014 11:04, Gary Gregory <ga...@gmail.com> wrote:

> Then what about matching the module name? log4j-io?
>
> Gary
>
>
> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>
>> I'll take a look at the constructors and such. I think this is a prime
>> candidate for the builder pattern.
>>
>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match the
>> java.io package that this module emulates. I think it's a pretty neat
>> package name now (especially with the foo.io domain name fad going on),
>> but if there are objections, we can always name it something else.
>>
>>
>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> They almost seem like SPI classes in a sense of how the JDK categorizes
>>>> things sometimes. I wouldn't mind flattening them. They're all of equal
>>>> importance.
>>>>
>>>
>>> Done.
>>>
>>> I'm going to sleep now (1am here) but one thing you can look at Matt (or
>>> anyone) is how many of all the ctors we really need. There are quite a few.
>>>
>>> Gary
>>>
>>>
>>>>
>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> Any thoughts on folding the two classes in
>>>>>
>>>>> org.apache.logging.log4j.streams.util
>>>>>
>>>>> back into:
>>>>>
>>>>> org.apache.logging.log4j.streams
>>>>>
>>>>> They are both hard wired to an ExtendedLogger.
>>>>>
>>>>> I could see those being a Core or API util package if they are to be
>>>>> in one.
>>>>>
>>>>> Thoughts?
>>>>>
>>>>> 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>
>>
>
>
>
> --
> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
Then what about matching the module name? log4j-io?

Gary


On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:

> I'll take a look at the constructors and such. I think this is a prime
> candidate for the builder pattern.
>
> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match the
> java.io package that this module emulates. I think it's a pretty neat
> package name now (especially with the foo.io domain name fad going on),
> but if there are objections, we can always name it something else.
>
>
> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com> wrote:
>
>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> They almost seem like SPI classes in a sense of how the JDK categorizes
>>> things sometimes. I wouldn't mind flattening them. They're all of equal
>>> importance.
>>>
>>
>> Done.
>>
>> I'm going to sleep now (1am here) but one thing you can look at Matt (or
>> anyone) is how many of all the ctors we really need. There are quite a few.
>>
>> Gary
>>
>>
>>>
>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> Any thoughts on folding the two classes in
>>>>
>>>> org.apache.logging.log4j.streams.util
>>>>
>>>> back into:
>>>>
>>>> org.apache.logging.log4j.streams
>>>>
>>>> They are both hard wired to an ExtendedLogger.
>>>>
>>>> I could see those being a Core or API util package if they are to be in
>>>> one.
>>>>
>>>> Thoughts?
>>>>
>>>> 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>
>



-- 
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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
Nevermind, I see it.

Gary


On Wed, Sep 3, 2014 at 11:58 AM, Gary Gregory <ga...@gmail.com>
wrote:

> You must not have pushed that commit yet.
>
> Gary
>
>
> On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:
>
>> I'll take a look at the constructors and such. I think this is a prime
>> candidate for the builder pattern.
>>
>> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match the
>> java.io package that this module emulates. I think it's a pretty neat
>> package name now (especially with the foo.io domain name fad going on),
>> but if there are objections, we can always name it something else.
>>
>>
>> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>> They almost seem like SPI classes in a sense of how the JDK categorizes
>>>> things sometimes. I wouldn't mind flattening them. They're all of equal
>>>> importance.
>>>>
>>>
>>> Done.
>>>
>>> I'm going to sleep now (1am here) but one thing you can look at Matt (or
>>> anyone) is how many of all the ctors we really need. There are quite a few.
>>>
>>> Gary
>>>
>>>
>>>>
>>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com> wrote:
>>>>
>>>>> Any thoughts on folding the two classes in
>>>>>
>>>>> org.apache.logging.log4j.streams.util
>>>>>
>>>>> back into:
>>>>>
>>>>> org.apache.logging.log4j.streams
>>>>>
>>>>> They are both hard wired to an ExtendedLogger.
>>>>>
>>>>> I could see those being a Core or API util package if they are to be
>>>>> in one.
>>>>>
>>>>> Thoughts?
>>>>>
>>>>> 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>
>>
>
>
>
> --
> 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
>



-- 
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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
You must not have pushed that commit yet.

Gary


On Wed, Sep 3, 2014 at 9:17 AM, Matt Sicker <bo...@gmail.com> wrote:

> I'll take a look at the constructors and such. I think this is a prime
> candidate for the builder pattern.
>
> Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match the
> java.io package that this module emulates. I think it's a pretty neat
> package name now (especially with the foo.io domain name fad going on),
> but if there are objections, we can always name it something else.
>
>
> On 2 September 2014 23:59, Gary Gregory <ga...@gmail.com> wrote:
>
>> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>> They almost seem like SPI classes in a sense of how the JDK categorizes
>>> things sometimes. I wouldn't mind flattening them. They're all of equal
>>> importance.
>>>
>>
>> Done.
>>
>> I'm going to sleep now (1am here) but one thing you can look at Matt (or
>> anyone) is how many of all the ctors we really need. There are quite a few.
>>
>> Gary
>>
>>
>>>
>>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> Any thoughts on folding the two classes in
>>>>
>>>> org.apache.logging.log4j.streams.util
>>>>
>>>> back into:
>>>>
>>>> org.apache.logging.log4j.streams
>>>>
>>>> They are both hard wired to an ExtendedLogger.
>>>>
>>>> I could see those being a Core or API util package if they are to be in
>>>> one.
>>>>
>>>> Thoughts?
>>>>
>>>> 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>
>



-- 
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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
I'll take a look at the constructors and such. I think this is a prime
candidate for the builder pattern.

Also, I renamed the o.a.l.l.streams package to o.a.l.l.io to match the
java.io package that this module emulates. I think it's a pretty neat
package name now (especially with the foo.io domain name fad going on), but
if there are objections, we can always name it something else.


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

> On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:
>
>> They almost seem like SPI classes in a sense of how the JDK categorizes
>> things sometimes. I wouldn't mind flattening them. They're all of equal
>> importance.
>>
>
> Done.
>
> I'm going to sleep now (1am here) but one thing you can look at Matt (or
> anyone) is how many of all the ctors we really need. There are quite a few.
>
> Gary
>
>
>>
>> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> Any thoughts on folding the two classes in
>>>
>>> org.apache.logging.log4j.streams.util
>>>
>>> back into:
>>>
>>> org.apache.logging.log4j.streams
>>>
>>> They are both hard wired to an ExtendedLogger.
>>>
>>> I could see those being a Core or API util package if they are to be in
>>> one.
>>>
>>> Thoughts?
>>>
>>> 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: org.apache.logging.log4j.streams.util

Posted by Gary Gregory <ga...@gmail.com>.
On Wed, Sep 3, 2014 at 12:32 AM, Matt Sicker <bo...@gmail.com> wrote:

> They almost seem like SPI classes in a sense of how the JDK categorizes
> things sometimes. I wouldn't mind flattening them. They're all of equal
> importance.
>

Done.

I'm going to sleep now (1am here) but one thing you can look at Matt (or
anyone) is how many of all the ctors we really need. There are quite a few.

Gary


>
> On 2 September 2014 09:54, Gary Gregory <ga...@gmail.com> wrote:
>
>> Any thoughts on folding the two classes in
>>
>> org.apache.logging.log4j.streams.util
>>
>> back into:
>>
>> org.apache.logging.log4j.streams
>>
>> They are both hard wired to an ExtendedLogger.
>>
>> I could see those being a Core or API util package if they are to be in
>> one.
>>
>> Thoughts?
>>
>> 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: org.apache.logging.log4j.streams.util

Posted by Matt Sicker <bo...@gmail.com>.
They almost seem like SPI classes in a sense of how the JDK categorizes
things sometimes. I wouldn't mind flattening them. They're all of equal
importance.


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

> Any thoughts on folding the two classes in
>
> org.apache.logging.log4j.streams.util
>
> back into:
>
> org.apache.logging.log4j.streams
>
> They are both hard wired to an ExtendedLogger.
>
> I could see those being a Core or API util package if they are to be in
> one.
>
> Thoughts?
>
> 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>