LevelMap ClassApache log4net™ SDK Documentation
Mapping between string name and Level object
Inheritance Hierarchy

SystemObject
  log4net.CoreLevelMap

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

public sealed class LevelMap

The LevelMap type exposes the following members.

Constructors

  NameDescription
Public methodLevelMap
Construct the level map
Top
Properties

  NameDescription
Public propertyAllLevels
Return all possible levels as a list of Level objects.
Public propertyItem
Lookup a Level by name
Top
Methods

  NameDescription
Public methodAdd(Level)
Add a Level to the map
Public methodAdd(String, Int32)
Create a new Level and add it to the map
Public methodAdd(String, Int32, String)
Create a new Level and add it to the map
Public methodClear
Clear the internal maps of all levels
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLookupWithDefault
Lookup a named level from the map
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

Mapping between string name and Level object. This mapping is held separately for each ILoggerRepository. The level name is case insensitive.

See Also

Reference