EventLogAppender GetEntryType Method | Apache log4net™ SDK Documentation

Get the equivalent EventLogEntryType for a Level level

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

C#
VB
C++
F#
Copy

    protected virtual EventLogEntryType GetEntryType(
    	Level level
    )

    Protected Overridable Function GetEntryType (
    	level As Level
    ) As EventLogEntryType

    protected:
    virtual EventLogEntryType GetEntryType(
    	Level^ level
    )

    abstract GetEntryType :
            level : Level -> EventLogEntryType
    override GetEntryType :
            level : Level -> EventLogEntryType

#### Parameters

level
  Type: log4net.Core
  Level
  the Level to convert to an EventLogEntryType

#### Return Value

Type: EventLogEntryType
The equivalent EventLogEntryType for a Level level
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

#### Reference

EventLogAppender Class
log4net.Appender Namespace