Table of Contents

Class AnsiColorTerminalAppender.LevelColors

Namespace
log4net.Appender
Assembly
log4net.dll

A class to act as a mapping between the level that a logging call is made at and the color it should be displayed as.

public class AnsiColorTerminalAppender.LevelColors : LevelMappingEntry, IOptionHandler
Inheritance
AnsiColorTerminalAppender.LevelColors
Implements
Inherited Members

Remarks

Defines the mapping between a level and the color it should be displayed in.

Constructors

LevelColors()

public LevelColors()

Properties

Attributes

The color attributes for the specified level

public AnsiColorTerminalAppender.AnsiAttributes Attributes { get; set; }

Property Value

AnsiColorTerminalAppender.AnsiAttributes

Remarks

Required property. The color attributes for the specified level

BackColor

The mapped background color for the specified level

public AnsiColorTerminalAppender.AnsiColor BackColor { get; set; }

Property Value

AnsiColorTerminalAppender.AnsiColor

Remarks

Required property. The mapped background color for the specified level

ForeColor

The mapped foreground color for the specified level

public AnsiColorTerminalAppender.AnsiColor ForeColor { get; set; }

Property Value

AnsiColorTerminalAppender.AnsiColor

Remarks

Required property. The mapped foreground color for the specified level

Methods

ActivateOptions()

Initialize the options for the object

public override void ActivateOptions()

Remarks

Combine the ForeColor and BackColor together and append the attributes.