LevelMap Class | Apache log4net™ SDK Documentation

Mapping between string name and Level object
Inheritance Hierarchy

System
Object
log4net.Core
LevelMap

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

C#
VB
C++
F#
Copy

    public sealed class LevelMap

    Public NotInheritable Class LevelMap

    public ref class LevelMap sealed

    [<SealedAttribute>]
    type LevelMap =  class end

The LevelMap type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| LevelMap | Construct the level map

Top
Properties

| Name | Description
--- | --- | ---
| AllLevels | Return all possible levels as a list of Level objects.
| Item | Lookup a Level by name

Top
Methods

| Name | Description
--- | --- | ---
| Add(Level) | Add a Level to the map
| Add(String, Int32) | Create a new Level and add it to the map
| Add(String, Int32, String) | Create a new Level and add it to the map
| Clear | Clear the internal maps of all levels
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| LookupWithDefault | Lookup a named level from the map
| ToString | 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

log4net.Core Namespace