commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [logging] Commons Logging 2.0?
Date Mon, 15 Dec 2014 02:55:36 GMT
Rainer,

Is there anything on the Log4j 2 side that would make this easier or
better? If so, would you be willing to raise a JIRA with Log4j 2. FYI: I am
on the Apache Logging PMC and have been quite involved in Log4j 2.


Gary

On Sun, Dec 14, 2014 at 2:38 PM, Rainer Jung <rainer.jung@kippdata.de>
wrote:
>
> Am 01.12.2014 um 14:31 schrieb Gary Gregory:
>
>> FWIW, I think a new version of CL would be 'fun' if it included support
>> for
>> Log4j 2...
>>
>
> I did an experiment in Tomcat land, because I didn't like the way Log4J
> version 2 supported commons-logging. Originally if you want to plug log4j
> version 2 into commons-logging, you need to add the log4j jar files to the
> same class loader that loaded commons-logging. For log4j Version 1 that is
> not true. Its integration in commons-logging can find log4j even if the
> class using commons-logging is loaded by a class loader lower down and
> log4j can be found by that classloader.
>
> Furthermore if you use the log4j version 2 integration, it replaces the
> factory that searches for log implementations and hard codes log4j version
> 2 only.
>
> So I used the existing log4j version 2 classes and slightly adjusted them
> for inclusion into commons logging. The result can be found at
>
> http://people.apache.org/~rjung/patches/cl-log4j2.patch
>
> That would be one way of supporting log4j version 2 in commons logging in
> a way that's completely analogous to the log4j version 1 support.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message