LevelMapping Lookup Method | Apache log4net™ SDK Documentation

Lookup the mapping for the specified level

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

C#
VB
C++
F#
Copy

    public LevelMappingEntry Lookup(
    	Level level
    )

    Public Function Lookup (
    	level As Level
    ) As LevelMappingEntry

    public:
    LevelMappingEntry^ Lookup(
    	Level^ level
    )

    member Lookup :
            level : Level -> LevelMappingEntry

#### Parameters

level
  Type: log4net.Core
  Level
  the level to lookup

#### Return Value

Type: LevelMappingEntry
the LevelMappingEntry for the level or null if no mapping found
Remarks

Lookup the value for the specified level. Finds the nearest mapping value for the level that is equal to or less than the level specified.

If no mapping could be found then null is returned.

See Also

#### Reference

LevelMapping Class
log4net.Util Namespace