<PackageReference Include="NLog" Version="6.2.2" />

NLog.LogLevel

Defines available log levels.
public static readonly LogLevel Debug

Debug log level (Ordinal = 1)

public static readonly LogLevel Error

Error log level (Ordinal = 4)

public static readonly LogLevel Fatal

Fatal log level (Ordinal = 5)

public static readonly LogLevel Info

Info log level (Ordinal = 2)

public static readonly LogLevel Off

Off log level (Ordinal = 6)

public static readonly LogLevel Trace

Trace log level (Ordinal = 0)

public static readonly LogLevel Warn

Warn log level (Ordinal = 3)

public static IEnumerable<LogLevel> AllLevels { get; }

Gets all the available log levels (Trace, Debug, Info, Warn, Error, Fatal, Off).

public static IEnumerable<LogLevel> AllLoggingLevels { get; }

Gets all the log levels that can be used to log events (Trace, Debug, Info, Warn, Error, Fatal) i.e LogLevel.Off is excluded.

public string Name { get; }

Gets the name of the log level.

public int Ordinal { get; }

Gets the ordinal of the log level.

public static LogLevel FromOrdinal(int ordinal)

Gets the LogLevel that corresponds to the specified ordinal.

public static LogLevel FromString(string levelName)

Returns the LogLevel that corresponds to the supplied string.

public static bool op_Equality(LogLevel level1, LogLevel level2)

Compares two LogLevel objects and returns a value indicating whether the first one is equal to the second one.

public static bool op_GreaterThan(LogLevel level1, LogLevel level2)

Compares two LogLevel objects and returns a value indicating whether the first one is greater than the second one.

public static bool op_GreaterThanOrEqual(LogLevel level1, LogLevel level2)

Compares two LogLevel objects and returns a value indicating whether the first one is greater than or equal to the second one.

public static bool op_Inequality(LogLevel level1, LogLevel level2)

Compares two LogLevel objects and returns a value indicating whether the first one is not equal to the second one.

public static bool op_LessThan(LogLevel level1, LogLevel level2)

Compares two LogLevel objects and returns a value indicating whether the first one is less than the second one.

public static bool op_LessThanOrEqual(LogLevel level1, LogLevel level2)

Compares two LogLevel objects and returns a value indicating whether the first one is less than or equal to the second one.

public int CompareTo(object obj)

Compares the level to the other LogLevel object.

public int CompareTo(LogLevel other)

Compares the level to the other LogLevel object.

public bool Equals(LogLevel other)

Determines whether the specified LogLevel instance is equal to this instance.