LevelMap LookupWithDefault Method | Apache log4net™ SDK Documentation

Lookup a named level from the map

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

C#
VB
C++
F#
Copy

    public Level LookupWithDefault(
    	Level defaultLevel
    )

    Public Function LookupWithDefault (
    	defaultLevel As Level
    ) As Level

    public:
    Level^ LookupWithDefault(
    	Level^ defaultLevel
    )

    member LookupWithDefault :
            defaultLevel : Level -> Level

#### Parameters

defaultLevel
  Type: log4net.Core
  Level
  the name of the level to lookup is taken from this level. If the level is not set on the map then this level is added

#### Return Value

Type: Level
the level in the map with the name specified
Remarks

Lookup a named level from the map. The name of the level to lookup is taken from the Name property of the defaultLevel argument.

If no level with the specified name is found then the defaultLevel argument is added to the level map and returned.

See Also

#### Reference

LevelMap Class
log4net.Core Namespace