AnsiColorTerminalAppender.LevelColors Class
AnsiColorTerminalAppenderLevelColors ClassApache 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

SystemObject
  log4net.UtilLevelMappingEntry
    log4net.AppenderAnsiColorTerminalAppenderLevelColors

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

public class LevelColors : LevelMappingEntry

The AnsiColorTerminalAppenderLevelColors type exposes the following members.

Constructors

  NameDescription
Public methodAnsiColorTerminalAppenderLevelColors
Initializes a new instance of the AnsiColorTerminalAppenderLevelColors class
Top
Properties

  NameDescription
Public propertyAttributes
The color attributes for the specified level
Public propertyBackColor
The mapped background color for the specified level
Public propertyForeColor
The mapped foreground color for the specified level
Public propertyLevel
The level that is the key for this mapping
(Inherited from LevelMappingEntry.)
Top
Methods

  NameDescription
Public methodActivateOptions
Initialize the options for the object
(Overrides LevelMappingEntryActivateOptions.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
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