logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicko Cadell" <ni...@neoworks.com>
Subject RE: Route LoggingEvent object back into log4net
Date Wed, 15 Dec 2004 15:02:01 GMT
Simon,

If you have a LoggingEvent that you want log4net to process you can use
the Log method on the ILoggerRepository interface.

log4net.LogManager.GetLoggerRepository().Log(event);

Nicko 

> -----Original Message-----
> From: Simon Wallis [mailto:mailing@wallis.ca] 
> Sent: 14 December 2004 22:01
> To: log4net-user@logging.apache.org
> Subject: Route LoggingEvent object back into log4net
> 
> Hi, I'm writing a web service that takes a LoggingEvent 
> object as a parameter (sent via a custom appender that makes 
> calls to this web service). I would like the web service to 
> take these events and route them back into log4net. Thus, 
> log4net would be used by the web service to do all the actual 
> logging work.
> 
> How can this be done?
> 
> Thanks,
> Simon.
> 

Mime
View raw message