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]
>  
> 
> 
> 

Reply via email to