log4net SDK Reference |

# 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(
Level2EventLogEntryType mapping
);

#### 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