Kevin,

The short answer is that I don't know! But this is exactly the sort of thing
that the http://logging.apache.org project was setup to achieve.

Currently log4net does not have a built-in SocketAppender, the primary
network appender is the RemotingAppender. I don't know if log4cxx has a
SocketAppender and if it does what it puts onto the wire.

To get this to work you need to get log4net and log4cxx to use the same
transport, probably tcp/ip sockets. And you need to agree on a wire format.
If possible I would suggest an XML based format. It may not be the most
optimised wire protocol but it is the most robust for interoperability.

Log4net certainly supports recreating and re-logging events, however the
only transport implemented currently is for .net remoting. It should not be
too hard to implement a socket based transport in C# for log4net.

Nicko

> -----Original Message-----
> From: Happe, Kevin [mailto:[EMAIL PROTECTED] 
> Sent: 03 March 2004 17:39
> To: [EMAIL PROTECTED]
> Subject: [Log4net-users] SocketAppender
> 
> I have projects in both C++ and CS. I am looking at using 
> log4net and log4cxx in the corresponding projects. Question, 
> If I use a socketappender for both loggers, can I make a 
> single Socketserver in CS or C++ to handle the logging events?
>  
> Kevin R. Happe 
> 
> 

Reply via email to