Table of Contents

Class ColoredConsoleAppender.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 ColoredConsoleAppender.LevelColors : LevelMappingEntry, IOptionHandler
Inheritance
ColoredConsoleAppender.LevelColors
Implements
Inherited Members

Remarks

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

Properties

BackColor

The mapped background color for the specified level

public ColoredConsoleAppender.Colors BackColor { get; set; }

Property Value

ColoredConsoleAppender.Colors

ForeColor

The mapped foreground color for the specified level

public ColoredConsoleAppender.Colors ForeColor { get; set; }

Property Value

ColoredConsoleAppender.Colors

Methods

ActivateOptions()

Initialize the options for the object

public override void ActivateOptions()

Remarks

Combine the ForeColor and BackColor together.