RE: SocketAppender

Nicko Cadell <[email protected]> Wed, 3 Mar 2004 18:09:29 -0000
Newsgroups gmane.comp.windows.dotnet.log4net.user
Message-ID <[email protected]>
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 
> 
> 


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click