ColoredConsoleAppender LevelColors Class | Apache log4net™ SDK Documentation

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.
Inheritance Hierarchy

System
Object
log4net.Util
LevelMappingEntry
log4net.Appender
ColoredConsoleAppender
LevelColors

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

C#
VB
C++
F#
Copy

    public class LevelColors : LevelMappingEntry

    Public Class LevelColors
    	Inherits LevelMappingEntry

    public ref class LevelColors : public LevelMappingEntry

    type LevelColors =
        class
            inherit LevelMappingEntry
        end

The ColoredConsoleAppender
LevelColors type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| ColoredConsoleAppender LevelColors | Initializes a new instance of the ColoredConsoleAppender LevelColors class

Top
Properties

| Name | Description
--- | --- | ---
| BackColor | The mapped background color for the specified level
| ForeColor | The mapped foreground color for the specified level
| Level | The level that is the key for this mapping (Inherited from LevelMappingEntry.)

Top
Methods

| Name | Description
--- | --- | ---
| ActivateOptions | Initialize the options for the object (Overrides LevelMappingEntry ActivateOptions .)
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

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

See Also

#### Reference

log4net.Appender Namespace