LogLevel Class |
Namespace: NLog
The LogLevel type exposes the following members.
| Name | Description | |
|---|---|---|
| AllLevels |
Gets all the available log levels (Trace, Debug, Info, Warn, Error, Fatal, Off).
| |
| AllLoggingLevels |
Gets all the log levels that can be used to log events (Trace, Debug, Info, Warn, Error, Fatal)
i.e LogLevel.Off is excluded.
| |
| Name |
Gets the name of the log level.
| |
| Ordinal |
Gets the ordinal of the log level.
|
| Name | Description | |
|---|---|---|
| CompareTo(LogLevel) |
Compares the level to the other LogLevel object.
| |
| CompareTo(Object) |
Compares the level to the other LogLevel object.
| |
| Equals(LogLevel) |
Determines whether the specified LogLevel instance is equal to this instance.
| |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
| FromOrdinal |
Gets the LogLevel that corresponds to the specified ordinal.
| |
| FromString |
Returns the LogLevel that corresponds to the supplied string.
| |
| GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) | |
| ToString |
Returns a string representation of the log level.
(Overrides ObjectToString.) |
| Name | Description | |
|---|---|---|
| Equality |
Compares two LogLevel objects
and returns a value indicating whether
the first one is equal to the second one.
| |
| GreaterThan |
Compares two LogLevel objects
and returns a value indicating whether
the first one is greater than the second one.
| |
| GreaterThanOrEqual |
Compares two LogLevel objects
and returns a value indicating whether
the first one is greater than or equal to the second one.
| |
| Inequality |
Compares two LogLevel objects
and returns a value indicating whether
the first one is not equal to the second one.
| |
| LessThan |
Compares two LogLevel objects
and returns a value indicating whether
the first one is less than the second one.
| |
| LessThanOrEqual |
Compares two LogLevel objects
and returns a value indicating whether
the first one is less than or equal to the second one.
|
| Name | Description | |
|---|---|---|
| Debug |
Debug log level (Ordinal = 1)
| |
| Error |
Error log level (Ordinal = 4)
| |
| Fatal |
Fatal log level (Ordinal = 5)
| |
| Info |
Info log level (Ordinal = 2)
| |
| Off |
Off log level (Ordinal = 6)
| |
| Trace |
Trace log level (Ordinal = 0)
| |
| Warn |
Warn log level (Ordinal = 3)
|