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/08 14:41:51 UTC

JUL class name

WRT org.apache.logging.log4j.jul.Levels

I think these would be better names:

Levels -> org.apache.logging.log4j.jul.LevelConverter
 - toJulLevel
 - toLog4jLevel

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: JUL class name

Posted by Gary Gregory <ga...@gmail.com>.
Enjoy :-)

G

On Mon, Sep 8, 2014 at 12:16 PM, Matt Sicker <bo...@gmail.com> wrote:

> Yes actually. Last day off.
>
>
> On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com> wrote:
>
>> On Mon, Sep 8, 2014 at 9:57 AM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>>
>>>
>>> On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com>
>>> wrote:
>>>
>>>> For == tests, a map seems better.
>>>>
>>>>
>>>> Gary
>>>>
>>> I agree.
>>>
>>
>> Do you have time?
>>
>> Gary
>>
>>
>>>
>>>
>>>>
>>>> On Mon, Sep 8, 2014 at 9:48 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Also, why not use maps to implement the conversions?
>>>>>>
>>>>>> For standard level lookups? Because the ranges are for custom level
>>>>> support. Plus, the name change sounds good. Just can't make it a
>>>>> TypeConverter sadly.
>>>>>
>>>>>
>>>>>> Gary
>>>>>>
>>>>>> On Mon, Sep 8, 2014 at 8:41 AM, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> WRT org.apache.logging.log4j.jul.Levels
>>>>>>>
>>>>>>> I think these would be better names:
>>>>>>>
>>>>>>> Levels -> org.apache.logging.log4j.jul.LevelConverter
>>>>>>>  - toJulLevel
>>>>>>>  - toLog4jLevel
>>>>>>>
>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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: JUL class name

Posted by Matt Sicker <bo...@gmail.com>.
Yes actually. Last day off.

On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com> wrote:

> On Mon, Sep 8, 2014 at 9:57 AM, Matt Sicker <boards@gmail.com
> <javascript:_e(%7B%7D,'cvml','boards@gmail.com');>> wrote:
>
>>
>>
>> On Monday, 8 September 2014, Gary Gregory <garydgregory@gmail.com
>> <javascript:_e(%7B%7D,'cvml','garydgregory@gmail.com');>> wrote:
>>
>>> For == tests, a map seems better.
>>>
>>>
>>> Gary
>>>
>> I agree.
>>
>
> Do you have time?
>
> Gary
>
>
>>
>>
>>>
>>> On Mon, Sep 8, 2014 at 9:48 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>>>
>>>>
>>>> On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com>
>>>> wrote:
>>>>
>>>>> Also, why not use maps to implement the conversions?
>>>>>
>>>>> For standard level lookups? Because the ranges are for custom level
>>>> support. Plus, the name change sounds good. Just can't make it a
>>>> TypeConverter sadly.
>>>>
>>>>
>>>>> Gary
>>>>>
>>>>> On Mon, Sep 8, 2014 at 8:41 AM, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> WRT org.apache.logging.log4j.jul.Levels
>>>>>>
>>>>>> I think these would be better names:
>>>>>>
>>>>>> Levels -> org.apache.logging.log4j.jul.LevelConverter
>>>>>>  - toJulLevel
>>>>>>  - toLog4jLevel
>>>>>>
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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 <boards@gmail.com
>> <javascript:_e(%7B%7D,'cvml','boards@gmail.com');>>
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com
> <javascript:_e(%7B%7D,'cvml','garydgregory@gmail.com');> | ggregory@apache.org
> <javascript:_e(%7B%7D,'cvml','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: JUL class name

Posted by Gary Gregory <ga...@gmail.com>.
On Mon, Sep 8, 2014 at 9:57 AM, Matt Sicker <bo...@gmail.com> wrote:

>
>
> On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com> wrote:
>
>> For == tests, a map seems better.
>>
>>
>> Gary
>>
> I agree.
>

Do you have time?

Gary


>
>
>>
>> On Mon, Sep 8, 2014 at 9:48 AM, Matt Sicker <bo...@gmail.com> wrote:
>>
>>>
>>>
>>> On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com>
>>> wrote:
>>>
>>>> Also, why not use maps to implement the conversions?
>>>>
>>>> For standard level lookups? Because the ranges are for custom level
>>> support. Plus, the name change sounds good. Just can't make it a
>>> TypeConverter sadly.
>>>
>>>
>>>> Gary
>>>>
>>>> On Mon, Sep 8, 2014 at 8:41 AM, Gary Gregory <ga...@gmail.com>
>>>> wrote:
>>>>
>>>>> WRT org.apache.logging.log4j.jul.Levels
>>>>>
>>>>> I think these would be better names:
>>>>>
>>>>> Levels -> org.apache.logging.log4j.jul.LevelConverter
>>>>>  - toJulLevel
>>>>>  - toLog4jLevel
>>>>>
>>>>> 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
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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: JUL class name

Posted by Matt Sicker <bo...@gmail.com>.
On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com> wrote:

> For == tests, a map seems better.
>
>
> Gary
>
I agree.


>
> On Mon, Sep 8, 2014 at 9:48 AM, Matt Sicker <boards@gmail.com
> <javascript:_e(%7B%7D,'cvml','boards@gmail.com');>> wrote:
>
>>
>>
>> On Monday, 8 September 2014, Gary Gregory <garydgregory@gmail.com
>> <javascript:_e(%7B%7D,'cvml','garydgregory@gmail.com');>> wrote:
>>
>>> Also, why not use maps to implement the conversions?
>>>
>>> For standard level lookups? Because the ranges are for custom level
>> support. Plus, the name change sounds good. Just can't make it a
>> TypeConverter sadly.
>>
>>
>>> Gary
>>>
>>> On Mon, Sep 8, 2014 at 8:41 AM, Gary Gregory <ga...@gmail.com>
>>> wrote:
>>>
>>>> WRT org.apache.logging.log4j.jul.Levels
>>>>
>>>> I think these would be better names:
>>>>
>>>> Levels -> org.apache.logging.log4j.jul.LevelConverter
>>>>  - toJulLevel
>>>>  - toLog4jLevel
>>>>
>>>> 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
>>>>
>>>
>>>
>>>
>>> --
>>> 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 <boards@gmail.com
>> <javascript:_e(%7B%7D,'cvml','boards@gmail.com');>>
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com
> <javascript:_e(%7B%7D,'cvml','garydgregory@gmail.com');> | ggregory@apache.org
> <javascript:_e(%7B%7D,'cvml','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: JUL class name

Posted by Gary Gregory <ga...@gmail.com>.
For == tests, a map seems better.

Gary

On Mon, Sep 8, 2014 at 9:48 AM, Matt Sicker <bo...@gmail.com> wrote:

>
>
> On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com> wrote:
>
>> Also, why not use maps to implement the conversions?
>>
>> For standard level lookups? Because the ranges are for custom level
> support. Plus, the name change sounds good. Just can't make it a
> TypeConverter sadly.
>
>
>> Gary
>>
>> On Mon, Sep 8, 2014 at 8:41 AM, Gary Gregory <ga...@gmail.com>
>> wrote:
>>
>>> WRT org.apache.logging.log4j.jul.Levels
>>>
>>> I think these would be better names:
>>>
>>> Levels -> org.apache.logging.log4j.jul.LevelConverter
>>>  - toJulLevel
>>>  - toLog4jLevel
>>>
>>> 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
>>>
>>
>>
>>
>> --
>> 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: JUL class name

Posted by Matt Sicker <bo...@gmail.com>.
On Monday, 8 September 2014, Gary Gregory <ga...@gmail.com> wrote:

> Also, why not use maps to implement the conversions?
>
> For standard level lookups? Because the ranges are for custom level
support. Plus, the name change sounds good. Just can't make it a
TypeConverter sadly.


> Gary
>
> On Mon, Sep 8, 2014 at 8:41 AM, Gary Gregory <garydgregory@gmail.com
> <javascript:_e(%7B%7D,'cvml','garydgregory@gmail.com');>> wrote:
>
>> WRT org.apache.logging.log4j.jul.Levels
>>
>> I think these would be better names:
>>
>> Levels -> org.apache.logging.log4j.jul.LevelConverter
>>  - toJulLevel
>>  - toLog4jLevel
>>
>> Gary
>>
>> --
>> E-Mail: garydgregory@gmail.com
>> <javascript:_e(%7B%7D,'cvml','garydgregory@gmail.com');> | ggregory@apache.org
>> <javascript:_e(%7B%7D,'cvml','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
> <javascript:_e(%7B%7D,'cvml','garydgregory@gmail.com');> | ggregory@apache.org
> <javascript:_e(%7B%7D,'cvml','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: JUL class name

Posted by Gary Gregory <ga...@gmail.com>.
Also, why not use maps to implement the conversions?

Gary

On Mon, Sep 8, 2014 at 8:41 AM, Gary Gregory <ga...@gmail.com> wrote:

> WRT org.apache.logging.log4j.jul.Levels
>
> I think these would be better names:
>
> Levels -> org.apache.logging.log4j.jul.LevelConverter
>  - toJulLevel
>  - toLog4jLevel
>
> 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
>



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