C# 클래스 log4net.Appender.WmiAppender

WmiAppender fires instrumented events for each LoggingEvent

This appender fires Windows Management Instrumentation (WMI) events for each LoggingEvent.

By default this appender fires WmiLoggingEvent objects, however this can be overridden by specifying a custom Layout or by setting the LoggingEvent.LoggingEvent.MessageObject to an IEvent instance.

This assembly must be registered with WMI. Use the InstallUtil tool shipped with the .NET framework to install this assembly. This will register the root/log4net WMI namespace.

상속: IAppender, IOptionHandler
파일 보기 프로젝트 열기: aurora-sim/Aurora-Libs

공개 메소드들

메소드 설명
ActivateOptions ( ) : void

Activate this appender

If a Layout has not been specified then this method will create a default WmiLayout instance.

Close ( ) : void

Close this appender

DoAppend ( log4net.Core.LoggingEvent loggingEvent ) : void

Process a LoggingEvent

Uses the Layout to format the loggingEvent as an IEvent. This IEvent is then fired.

비공개 메소드들

메소드 설명
IsAsSevereAsThreshold ( log4net.Core.Level level ) : bool

Checks if the message level is below this appender's threshold.

메소드 상세

ActivateOptions() 공개 메소드

Activate this appender

If a Layout has not been specified then this method will create a default WmiLayout instance.

public ActivateOptions ( ) : void
리턴 void

Close() 공개 메소드

Close this appender
public Close ( ) : void
리턴 void

DoAppend() 공개 메소드

Process a LoggingEvent

Uses the Layout to format the loggingEvent as an IEvent. This IEvent is then fired.

public DoAppend ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent the containing the data
리턴 void