Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LevelMap.LookupWithDefault�Method�

Lookup a named level from the map

[Visual�Basic]
Public�Function�LookupWithDefault( _
���ByVal defaultLevel�As�Level�_
)�As�Level
[C#]
public�Level�LookupWithDefault(
���LeveldefaultLevel
);

Parameters

defaultLevel
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

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

LevelMap Class | log4net.Core Namespace