Show / Hide Table of Contents

Class PrefixConfiguration

The configuration for a log category.

Inheritance
System.Object
PrefixConfiguration
Namespace: Phoenix.Logger
Assembly: Phoenix.Abstractions.Logger.dll
Syntax
public class PrefixConfiguration : BindableBase

Constructors

View Source

PrefixConfiguration(Color, Guid, LogSeverity, Boolean, String)

Initializes a new instance of the PrefixConfiguration class.

Declaration
public PrefixConfiguration(Color textColor, Guid defaultCategoryId, LogSeverity defaultSeverity, bool showPrefix, string prefixName)
Parameters
Type Name Description
System.Windows.Media.Color textColor

The color of the text for this category.

System.Guid defaultCategoryId

The category id this prefix will use if not specified.

LogSeverity defaultSeverity

The default severity for this category.

System.Boolean showPrefix

True to show prefix, false otherwise.

System.String prefixName

The prefix name for this category.

Properties

View Source

DefaultCategoryId

Gets or sets the category id this prefix is associated with.

Declaration
public Guid DefaultCategoryId { get; set; }
Property Value
Type Description
System.Guid
View Source

DefaultSeverity

Gets or sets the default log severity for this category.

Declaration
public LogSeverity DefaultSeverity { get; set; }
Property Value
Type Description
LogSeverity
View Source

LoggingEnabled

Gets or sets a value indicating whether or not a message with this prefix can be logged.

Declaration
public bool LoggingEnabled { get; set; }
Property Value
Type Description
System.Boolean
View Source

PrefixName

Gets or sets the prefix name for this category.

Declaration
public string PrefixName { get; set; }
Property Value
Type Description
System.String
View Source

ShowPrefix

Gets or sets a value indicating whether to show the prefix and timestamp at the beginning of each line.

Declaration
public bool ShowPrefix { get; set; }
Property Value
Type Description
System.Boolean
View Source

TextColor

Gets or sets the color of the text for this category.

Declaration
public Color TextColor { get; set; }
Property Value
Type Description
System.Windows.Media.Color
  • View Source
In This Article
Back to top Generated by DocFX