Struct LogCategoryVerbosity
Value object representing the verbosity settings for a specific log category.
Inherited Members
Namespace: Serenity.Logging.Domain.ValueObjects
Assembly: Serenity.Global.Domain.dll
Syntax
public readonly struct LogCategoryVerbosity
Constructors
LogCategoryVerbosity(string, LogVerbosity)
Initializes a new instance of the LogCategoryVerbosity struct.
Declaration
public LogCategoryVerbosity(string category, LogVerbosity verbosity)
Parameters
| Type | Name | Description |
|---|---|---|
| string | category | The category of the log entry. |
| LogVerbosity | verbosity | The verbosity level for the log category. |
Fields
Category
Declaration
public readonly string Category
Field Value
| Type | Description |
|---|---|
| string | The category of the log entry. |
Verbosity
Declaration
public readonly LogVerbosity Verbosity
Field Value
| Type | Description |
|---|---|
| LogVerbosity | The verbosity level for the log category. |
Methods
IsMatch(string)
Determines if the given category matches this verbosity setting's category.
Declaration
public bool IsMatch(string category)
Parameters
| Type | Name | Description |
|---|---|---|
| string | category | The category to check. |
Returns
| Type | Description |
|---|---|
| bool | True if the categories match; otherwise, false. |