Ah, an extension. I was hoping to avoid that. You'd think that'd be part of the core. Nevermind, though. I'll check it out - and thank you very much.
WILLIAM BARNUM [EMAIL PROTECTED] -----Original Message----- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 1:04 PM To: Log4NET User Subject: Re: How to log EventID with EventLogAppender? Do you want to do something like this: public interface IEventIDLog : ILog { void Info(int eventId, object message); void Info(int eventId, object message, Exception t); void Warn(int eventId, object message); void Warn(int eventId, object message, Exception t); void Error(int eventId, object message); void Error(int eventId, object message, Exception t); void Fatal(int eventId, object message); void Fatal(int eventId, object message, Exception t); } If so, there is example code here: http://cvs.apache.org/viewcvs.cgi/logging-log4net/extensions/net/1.0/ That works with both 1.0 and 1.1 of the Framework. --- Billy Barnum <[EMAIL PROTECTED]> wrote: > I'm logging with EventLogAppender, and setting the EventSource field > in the > Application Log using ApplicationName property. > > But I would like to log my own EventIds as well. Is there a way to do > this > with log4net? I'm not talking about putting something in the message > text, > but setting the actual eventID field in the log. I can't see a way. > What am > I missing? > > > WILLIAM BARNUM > [EMAIL PROTECTED] > > > >
