Click or drag to resize

LogLevelFromOrdinal Method

Gets the LogLevel that corresponds to the specified ordinal.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public static LogLevel FromOrdinal(
	int ordinal
)

Parameters

ordinal
Type: SystemInt32
The ordinal.

Return Value

Type: LogLevel
The LogLevel instance. For 0 it returns Trace, 1 gives Debug and so on.
See Also