log4net SDK Reference

EventLogAppender.GetEntryType Method 

Get the equivalent EventLogEntryType for a Level p

[Visual Basic]
Overridable Protected Function GetEntryType( _
   ByVal level As Level _
) As EventLogEntryType
[C#]
protected virtual EventLogEntryType GetEntryType(
   Level level
);

Parameters

level
the Level to convert to an EventLogEntryType

Return Value

The equivalent EventLogEntryType for a Level p

Remarks

Because there are fewer applicable EventLogEntryType values to use in logging levels than there are in the Level this is a one way mapping. There is a loss of information during the conversion.

See Also

EventLogAppender Class | log4net.Appender Namespace