log4net SDK Reference |

# AnsiColorTerminalAppender.AddMapping Method

Add a mapping of level to color

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

#### Parameters

mapping
  The mapping to add

#### Remarks

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

#### See Also

AnsiColorTerminalAppender Class | log4net.Appender Namespace