C# 클래스 log4net.Appender.WmiLayout

파일 보기 프로젝트 열기: aurora-sim/Aurora-Libs 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

CreateEvent() 보호된 메소드

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 containing the data
리턴 IEvent

Format() 공개 메소드

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.

public Format ( log4net.Core.LoggingEvent loggingEvent ) : IEvent
loggingEvent log4net.Core.LoggingEvent the containing the data
리턴 IEvent