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
Afficher le fichier Open project: aurora-sim/Aurora-Libs

Méthodes publiques

Méthode 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

Méthode Description
IsAsSevereAsThreshold ( log4net.Core.Level level ) : bool

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

Method Details

ActivateOptions() public méthode

Activate this appender

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

public ActivateOptions ( ) : void
Résultat void

Close() public méthode

Close this appender
public Close ( ) : void
Résultat void

DoAppend() public méthode

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
Résultat void