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
Показать файл Открыть проект

Открытые методы

Метод Описание
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