Open sandboxFocus

Class ConsoleTheme

A simple implementation of a color theme that allows only for two colors per LogLevel.

Inheritance
ConsoleTheme
Implements
Namespace: PostSharp.Patterns.Diagnostics.Backends.Console
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class ConsoleTheme : IConsoleTheme

Constructors

Name Description
ConsoleTheme(ConsoleTheme)

Initializes a new ConsoleTheme and copies all values from a given other ConsoleTheme.

ConsoleTheme(bool)

Initializes a new ConsoleTheme.

Properties

Name Description
HightlightedStyles

Gets the styles used for highlighted text.

NormalStyles

Gets the styles used for normal text.

SupportsAnsiCodes

Determines whether the theme supports VT escape codes.

Methods

Name Description
AddHightlightedItem(ConsoleThemeItem)

Specifies that a ConsoleThemeItem should be formatted using the hightlighted style.

Clone()

Returns an editable copy of the current ConsoleTheme.

Freeze()

Prevents modifications in the current ConsoleTheme.

GetStyle(string, LogLevel, LogRecordKind, ConsoleThemeItem)

Gets the ConsoleThemeStyle for a specific theme item.

RemoveHighlightedItem(ConsoleThemeItem)

Specifies that a ConsoleThemeItem should be formatted using the normal style.