On Feb 22, 2008, at 4:57 AM, Jason Irwin wrote:

I just started using Chainsaw the other day. It seems like a great addition
to Log4j and I hope the effort to improve it continues.

I've been playing with the zero-conf stuff, but try as I might I cannot get at the location info or MDC data over this (it's find when reading an XML
log file).
I have tried:
        <appender name="test_zeroconf"
class="org.apache.log4j.net.ZeroConfSocketHubAppender">
                <param name="Name" value="JI-WebApp-ZeroConf" />
                <param name="LocationInfo" value="true"/>
        </appender>

I also tried a simple socket hub appender:
        <appender name="test_sockethub"
class="org.apache.log4j.net.SocketHubAppender">
                <param name="Name" value="JI-WebApp-SocketHub" />
                <param name="Port" value="1234" />
                <param name="LocationInfo" value="true"/>
        </appender>

But I get no location info or MDC data for either (NDC data seems to work).
Has anyone managed to do this or can point me at the documentation/my
mistake?  I have a nasty feeling I'm doing something rather dumb....

Cheers,

Jason


I'm not sure about the MDC, but the LocationInfo was known to be affected by serialization incompatibility between the log4j 1.2 and 1.3 alphas. The Chainsaw currently available on the WebStart is built on a log4j 1.3 alpha and will lose information when connected to a log4j 1.2 source. Chainsaw in the SVN has been migrated back to a log4j 1.2 and should work with log4j 1.2 and log4cxx.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to