log4net SDK Reference |

# 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(
LevelColors mapping
);

#### 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