EventLogAppender AddMapping Method | Apache log4net™ SDK Documentation

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

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public void AddMapping(
    	EventLogAppenderLevel2EventLogEntryType mapping
    )

    Public Sub AddMapping (
    	mapping As EventLogAppenderLevel2EventLogEntryType
    )

    public:
    void AddMapping(
    	EventLogAppenderLevel2EventLogEntryType^ mapping
    )

    member AddMapping :
            mapping : EventLogAppenderLevel2EventLogEntryType -> unit

#### Parameters

mapping
  Type: log4net.Appender
  EventLogAppender
  Level2EventLogEntryType
  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

#### Reference

EventLogAppender Class
log4net.Appender Namespace