On Aug 10, 2007, at 4:31 AM, Sarna, Amit wrote:

Related question: Now i have the socket appender working with the Plain Text Socket appender. However, the message is sent in a serialized way and i think i have to de-serialize using a socket node. Does anybody have a good example of using socket nodes to recieve log4cxx messages and getting them back into original format?

Thanks
  Amit


SocketAppender in log4j uses Java serialization to push a LoggingEvent instance over the wire and is most commonly used to connect an application with the Chainsaw logging event viewer. SocketAppender in log4cxx (and maybe the others) did not attempt to support the same format and attempting to connect a log4cxx SocketAppender to a Chainsaw SocketReceiver will not yield a working solution. XMLSocketAppender was provided as an alternative that would work with Chainsaw. It may be technically possible and likely highly desirable to make log4cxx SocketAppender produce packets that are compatible with log4j (see https://issues.apache.org/jira/browse/ LOGCXX-7). However that would break any existing receiver that might have used the existing log4cxx-specific format.

Reply via email to