Метод | Описание | |
---|---|---|
Format ( log4net.Core.LoggingEvent loggingEvent ) : IEvent |
Formats a LoggingEvent for instrumentation If the LoggingEvent.MessageObject of the loggingEvent is an IEvent then that instance is returned. If the instance also implements the IWmiBoundEvent interface then the IWmiBoundEvent.Bind method will be called on the instance with the loggingEvent parameter. If the LoggingEvent.MessageObject of the loggingEvent is not an IEvent then the CreateEvent method will be called to create an appropriate instrumentation event object. |
Метод | Описание | |
---|---|---|
CreateEvent ( log4net.Core.LoggingEvent loggingEvent ) : IEvent |
Create the IEvent instance that should be fired The default implementation of this method creates a WmiLoggingEvent instance using the data from the loggingEvent. Subclasses should override this method to return their own custom instrumentation event object. |
protected CreateEvent ( log4net.Core.LoggingEvent loggingEvent ) : IEvent | ||
loggingEvent | log4net.Core.LoggingEvent | the |
Результат | IEvent |
public Format ( log4net.Core.LoggingEvent loggingEvent ) : IEvent | ||
loggingEvent | log4net.Core.LoggingEvent | the |
Результат | IEvent |