Class LogFilterGroup<T>
A class representing a group of related filters.
Inherited Members
Namespace: Phoenix.BotBrain.Logging
Assembly: Phoenix.Plugin.BotBrain.Logging.dll
Syntax
public class LogFilterGroup<T> : LogFilterGroupBase where T : LogFilterBase
Type Parameters
| Name | Description |
|---|---|
| T | The filter type. |
Remarks
Initializes a new instance of the LogFilterGroup<T> class.
Constructors
View SourceLogFilterGroup(string, ObservableCollection<LogFilterBase>)
A class representing a group of related filters.
Declaration
public LogFilterGroup(string name, ObservableCollection<LogFilterBase> filters)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The group name. |
| ObservableCollection<LogFilterBase> | filters | The collection of all filters. |
Remarks
Initializes a new instance of the LogFilterGroup<T> class.
Properties
View SourceFilters
Gets the group's filters.
Declaration
public override IEnumerable<LogFilterBase> Filters { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<LogFilterBase> |
Overrides
Methods
View SourceClone(ObservableCollection<LogFilterBase>)
Clones this filter group.
Declaration
public override LogFilterGroupBase Clone(ObservableCollection<LogFilterBase> filters)
Parameters
| Type | Name | Description |
|---|---|---|
| ObservableCollection<LogFilterBase> | filters | The new collection of all filters. |
Returns
| Type | Description |
|---|---|
| LogFilterGroupBase | The new filter group. |
Overrides
View SourceCreateFilter(LogEvent, bool)
Creates a filter.
Declaration
public override LogFilterBase CreateFilter(LogEvent item, bool defaultEnabled = true)
Parameters
| Type | Name | Description |
|---|---|---|
| LogEvent | item | The log event to use. |
| bool | defaultEnabled | Whether or not to enable the filter by default. |
Returns
| Type | Description |
|---|---|
| LogFilterBase | The filter. |