On Fri, Feb 10, 2012 at 10:15 AM, Emmanuel Bourg <ebo...@apache.org> wrote:

> Le 10/02/2012 15:53, Gary Gregory a écrit :
>
>
>  When it is integration time, we'll need some guidance even if it is just
>> pointers to HOW-TOs. In my case, what happens when my server to coded to
>> Log4J and I want all logging to go to the same file? I do not need an
>> answer now but it will be an issue.
>>
>
> I do that with the JUL/Log4J bridge:
>
> http://people.apache.org/~**psmith/logging.apache.org/**
> sandbox/jul-log4j-bridge/**examples.html<http://people.apache.org/%7Epsmith/logging.apache.org/sandbox/jul-log4j-bridge/examples.html>
>
> Example 1 - Completely take over JUL and route all LogRecords into log4j
>
> JULLog4jBridge.assimilate();
>
>
> Example 4 - Completely take over JUL and route all LogRecords into log4j
> by using a System property
>
> ...-Djava.util.logging.**manager=org.apache.logging.**julbridge.JULBridgeLogManager
> ...
>
>
>
Good stuff, thank you.

So both JUL and CL can work with Log4J and presumably any other logging
implementation.

This would be good to know: What is the performance hit of the two
solutions above?

The question becomes: should pool2 depend on CL?

Gary


> Emmanuel Bourg
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to