This isnt something I have ever needed to use log4net for, but there are two 
possibilities for you: RemotingAppender and UDPAppender. Both of these 
appenders appear to be able to deliver messages to remote apps, at least this 
is what the log4net page on config examples suggest: 
http://logging.apache.org/log4net/release/config-examples.html

 

There is also a SMTPAppender that could also help you out.

 

However, I dont think there is anything ready made for you that will enter 
these events onto another systems event log. If this is a Windows environment, 
then it isnt a great idea anyway. If you think about it a bit, the event log is 
used for the system upon which the OS and other applications are running. To 
me, it makes very little sense to log events from other systems here.

 

Have you considered simply using the ADONetAppender to log events to a database 
somewhere? This, to me at least, would be a better way of logging events - but 
then again I dont really know what it is you are trying to do.


 


> From: florin.danel...@iquestint.com
> To: log4net-user@logging.apache.org
> Date: Mon, 22 Jun 2009 18:38:35 +0300
> Subject: Using log4net to write to remote windows event log
> 
> 
> Hello,
> 
> I'm using log4net to log/trace an application and I would like to have cert= 
> ain errors ending up in the the event log from another computer. Is there a 
> way to do this? (RemoteSyslogAppender?)
> 
> It seems that I could do around the tree and use a ForwardingAppender which 
> together with a application acting as server on the remote computer would 
> could write this to the event log, but it looks a little to cumbersome.
> 
> PS I was able to change log4net to write to a remote eventlog, but I would 
> prefer to use an "untainted" library.
> 
> Thanks,
> florin

_________________________________________________________________
Share your photos with Windows Live Photos – Free.
http://clk.atdmt.com/UKM/go/134665338/direct/01/

Reply via email to