Class LoggerConfiguration
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Logger
Assembly: Phoenix.Abstractions.Logger.dll
Syntax
public class LoggerConfiguration : ILoggerConfiguration
Constructors
View SourceLoggerConfiguration(String, LogSeverity, String, String, Boolean)
Initializes a new instance of the LoggerConfiguration class.
Declaration
public LoggerConfiguration(string prefixName, LogSeverity defaultSeverity, string defaultCategory, string textColor, bool showPrefix)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefixName | The prefix name for this category. |
LogSeverity | defaultSeverity | The default severity for this category. |
System.String | defaultCategory | The category this prefix will use if not specified. |
System.String | textColor | The color of the text for this category. |
System.Boolean | showPrefix | True to show prefix, false otherwise. |
Properties
View SourceLogPrefixDefaultCategory
Gets the category this prefix is associated with.
Declaration
public string LogPrefixDefaultCategory { get; }
Property Value
Type | Description |
---|---|
System.String |
LogPrefixDefaultSeverity
Gets the default log severity for this category.
Declaration
public LogSeverity LogPrefixDefaultSeverity { get; }
Property Value
Type | Description |
---|---|
LogSeverity |
LogPrefixName
Gets the prefix name for this category.
Declaration
public string LogPrefixName { get; }
Property Value
Type | Description |
---|---|
System.String |
LogPrefixShowPrefix
Gets a value indicating whether to show the prefix and timestamp at the beginning of each line.
Declaration
public bool LogPrefixShowPrefix { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LogPrefixTextColor
Gets the color of the text for this category.
Declaration
public string LogPrefixTextColor { get; }
Property Value
Type | Description |
---|---|
System.String |