NLog Logging Library

LogLevel.FromOrdinal Method 

[This is preliminary documentation and subject to change.]

Gets the LogLevel that corresponds to the specified ordinal.

[Visual Basic]
Public Shared Function FromOrdinal( _
   ByVal ordinal As Integer _
) As LogLevel
[C#]
public static LogLevel FromOrdinal(
   int ordinal
);

Parameters

ordinal
The ordinal.

Return Value

The LogLevel instance. For 0 it returns Debug, 1 gives Info and so on

See Also

LogLevel Class | NLog Namespace