Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

EventLogAppender.AddMapping�Method�

Add a mapping of level to EventLogEntryType - done by the config file

[Visual�Basic]
Public�Sub�AddMapping( _
���ByVal mapping�As�Level2EventLogEntryType�_
)
[C#]
public�void�AddMapping(
���Level2EventLogEntryTypemapping
);

Parameters

mapping
The mapping to add

Remarks

Add a EventLogAppender.Level2EventLogEntryType mapping to this appender. Each mapping defines the event log entry type for a level.

See Also

EventLogAppender Class | log4net.Appender Namespace