ColoredConsoleAppender AddMapping Method | Apache log4net™ SDK Documentation

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

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

C#
VB
C++
F#
Copy

    public void AddMapping(
    	ColoredConsoleAppenderLevelColors mapping
    )

    Public Sub AddMapping (
    	mapping As ColoredConsoleAppenderLevelColors
    )

    public:
    void AddMapping(
    	ColoredConsoleAppenderLevelColors^ mapping
    )

    member AddMapping :
            mapping : ColoredConsoleAppenderLevelColors -> unit

#### Parameters

mapping
  Type: log4net.Appender
  ColoredConsoleAppender
  LevelColors
  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

#### Reference

ColoredConsoleAppender Class
log4net.Appender Namespace