Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

ColoredConsoleAppender.AddMapping�Method�

Add a mapping of level to color - done by the config file

[Visual�Basic]
Public�Sub�AddMapping( _
���ByVal mapping�As�LevelColors�_
)
[C#]
public�void�AddMapping(
���LevelColorsmapping
);

Parameters

mapping
The mapping to add

Remarks

Add a ColoredConsoleAppender.LevelColors mapping to this appender. Each mapping defines the foreground and background colors for a level.

See Also

ColoredConsoleAppender Class | log4net.Appender Namespace