Click or drag to resize
LogLevel Class
Defines available log levels.
Inheritance Hierarchy
SystemObject
  NLogLogLevel

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public sealed class LogLevel : IComparable, 
	IEquatable<LogLevel>

The LogLevel type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberAllLevels
All log levels. (Trace, Debug, Info, Warn, Error, Fatal, Off)
Public propertyStatic memberAllLoggingLevels
All log levels that can be used to log events (excludes Off). (Trace, Debug, Info, Warn, Error, Fatal)
Public propertyName
Gets the name of the log level.
Public propertyOrdinal
Gets the ordinal of the log level.
Top
Methods
  NameDescription
Public methodCompareTo
Compares the level to the other LogLevel object.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodEquals(LogLevel)
Determines whether the specified LogLevel instance is equal to this instance.
Public methodStatic memberFromOrdinal
Gets the LogLevel that corresponds to the specified ordinal.
Public methodStatic memberFromString
Returns the LogLevel that corresponds to the supplied string.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodToString
Returns a string representation of the log level.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two LogLevel objects and returns a value indicating whether the first one is equal to the second one.
Public operatorStatic memberGreaterThan
Compares two LogLevel objects and returns a value indicating whether the first one is greater than the second one.
Public operatorStatic memberGreaterThanOrEqual
Compares two LogLevel objects and returns a value indicating whether the first one is greater than or equal to the second one.
Public operatorStatic memberInequality
Compares two LogLevel objects and returns a value indicating whether the first one is not equal to the second one.
Public operatorStatic memberLessThan
Compares two LogLevel objects and returns a value indicating whether the first one is less than the second one.
Public operatorStatic memberLessThanOrEqual
Compares two LogLevel objects and returns a value indicating whether the first one is less than or equal to the second one.
Top
Fields
  NameDescription
Public fieldStatic memberDebug
Debug log level.
Public fieldStatic memberError
Error log level.
Public fieldStatic memberFatal
Fatal log level.
Public fieldStatic memberInfo
Info log level.
Public fieldStatic memberOff
Off log level.
Public fieldStatic memberTrace
Trace log level.
Public fieldStatic memberWarn
Warn log level.
Top
See Also