C# Class 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.

Inheritance: IAppender, IOptionHandler
Mostra file Open project: aurora-sim/Aurora-Libs

Public Methods

Method Description
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.

Private Methods

Method Description
IsAsSevereAsThreshold ( log4net.Core.Level level ) : bool

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

Method Details

ActivateOptions() public method

Activate this appender

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

public ActivateOptions ( ) : void
return void

Close() public method

Close this appender
public Close ( ) : void
return void

DoAppend() public method

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
return void