logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: Config styles
Date Fri, 28 Feb 2014 02:42:54 GMT
And one of the awesome side effects of Ralph's config system is that it
also makes it easy to expose different ways to specify a configuration
outside of log4j-core. For instance, one of the OSGi features I'll be
adding down the road are various ways to configure log4j using standard
OSGi configuration services like managed services and preferences (which is
rather similar to java.util.prefs honestly). I haven't looked at the JMX
code yet, but it works using a similar concept, right?


On 27 February 2014 19:32, Gary Gregory <garydgregory@gmail.com> wrote:

> On Thu, Feb 27, 2014 at 6:59 PM, Ralph Goers <ralph.goers@dslextreme.com>wrote:
>
>> First, my initial goal was to make it so that you could use the core
>> features of Log4j 2 with no third party dependencies. I am not sure if that
>> is true any more but I see no reason to introduce one for configuration.
>>
>> Second, I don’t really see what benefit we would be getting. Perhaps that
>> is because in the links Simone provided I don’t see anything that ties to
>> the configuration he is manipulating back into Log4j
>>
>> Third, the algorithm used in parsing the configuration is really simple -
>> the configuration is converted into a Node tree. BaseConfiguration then
>> processes the Node tree to create the actual configuration.  So if you want
>> to create a new configuration type all you have to do is make sure that
>> when it is done a proper Node tree is constructed.
>>
>> If I wanted to create a configuration based on Groovy or bean shell I
>> know exactly what would need to be done.  I have no idea how that could be
>> accomplished using modello.
>>
>> In short, nothing I’ve seen yet has convinced me that there is anything
>> to gain by switching.
>>
>
> OK, thanks for the clarifications.
>
> I'm curious to see if Simone can explain the pros and cons of his system.
>
> Gary
>
>
>>
>> Ralph
>>
>> On Feb 27, 2014, at 2:41 PM, Gary Gregory <garydgregory@gmail.com> wrote:
>>
>> I just saw a commit for YAML config.
>>
>> Can we review what Simone T. did a while back in the area of
>> configuration?
>>
>> @Simone: Can you give an overview?
>>
>> Thank you,
>> 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>

Mime
View raw message