logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre StĂžlsvik <En...@Stolsvik.com>
Subject RE: java.util.logging interoperability
Date Mon, 23 Feb 2004 14:29:29 GMT
On Wed, 18 Feb 2004, Scott Deboy wrote:

| Glad you asked!
|
| Interoperability with jdk1.4 will be available with the 1.3 release of
| Log4j - currently in CVS.
|
| On the JDK1.4 side, configure your loggers with a SocketHandler and the
| default XMLFormatter.
|
| On the log4j side, receive the events using Chainsaw v2.
|
| Here is an example receiver configuration which can receive the jdk1.4
| util.logging events:
|
| <?xml version="1.0" encoding="UTF-8" ?>
| <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
| <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
| debug="true">
|
|   <plugin name="UtilLoggingSocketReceiver"
| class="org.apache.log4j.net.XMLSocketReceiver">
|      <param name="Port" value="4448"/>
|      <param name="decoder"
| value="org.apache.log4j.xml.UtilLoggingXMLDecoder"/>
|    </plugin>
|    <root>
|       <level value="debug"/>
|    </root>
| </log4j:configuration>
|
| You can get the latest version of Chainsaw (and Log4J) using an ant
| script Paul Smith wrote, available from the 'installation' section of
| this page: http://logging.apache.org/log4j/docs/chainsaw.html
|
| Let me know if you have further questions.

Sounds like overhead galore? I'm thinking 100 trace log statements (incl.
"isTraceEnabled()"-style stash) for one "key-click" on a web application.

Endre.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message