 | LogLevelFromOrdinal Method |
Gets the
LogLevel that corresponds to the specified ordinal.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic static LogLevel FromOrdinal(
int ordinal
)
Public Shared Function FromOrdinal (
ordinal As Integer
) As LogLevel
Dim ordinal As Integer
Dim returnValue As LogLevel
returnValue = LogLevel.FromOrdinal(ordinal)
static member FromOrdinal :
ordinal : int -> LogLevel
Parameters
- ordinal
- Type: SystemInt32
The ordinal.
Return Value
Type:
LogLevelThe
LogLevel instance. For 0 it returns
Trace, 1 gives
Debug and so on.
See Also