Open sandboxFocus

Interface IConsoleTheme

Exposes the semantics of a console color theme. A simple implementation is provided by the ConsoleTheme class, and ready-made themes are exposed on the ConsoleThemes class.

Namespace: PostSharp.Patterns.Diagnostics.Backends.Console
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public interface IConsoleTheme
Remarks

Implement this interface directly only when ConsoleTheme, which allows two styles per LogLevel, is too restrictive. Assign the theme to Theme.

Properties

Name Description
SupportsAnsiCodes

Gets a value indicating whether the theme supports VT escape codes.

SupportsThemeItems

Gets a value indicating whether the theme supports differentiating the style according to the ConsoleThemeItem.

Methods

Name Description
GetStyle(string, LogLevel, LogRecordKind, ConsoleThemeItem)

Gets the ConsoleThemeStyle for a specific theme item.

See Also