Class LogFilterGroupBase
A class representing a group of related filters.
Inherited Members
Namespace: Phoenix.BotBrain.Logging
Assembly: Phoenix.Plugin.BotBrain.Logging.dll
Syntax
public abstract class LogFilterGroupBase
Constructors
View SourceLogFilterGroupBase(string, ObservableCollection<LogFilterBase>, Func<object, bool>)
Initializes a new instance of the LogFilterGroupBase class.
Declaration
public LogFilterGroupBase(string name, ObservableCollection<LogFilterBase> filters, Func<object, bool> filter)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The group name. |
| ObservableCollection<LogFilterBase> | filters | The collection of all filters. |
| Func<object, bool> | filter | A predicate determining group membership. |
Properties
View SourceAllFilters
Gets the collection of all filters.
Declaration
protected ObservableCollection<LogFilterBase> AllFilters { get; }
Property Value
| Type | Description |
|---|---|
| ObservableCollection<LogFilterBase> |
Filters
Gets the group's filters.
Declaration
public abstract IEnumerable<LogFilterBase> Filters { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<LogFilterBase> |
Items
Gets the group's items.
Declaration
public ICollectionView Items { get; }
Property Value
| Type | Description |
|---|---|
| ICollectionView |
Name
Gets the group name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceClone(ObservableCollection<LogFilterBase>)
Clones this filter group.
Declaration
public abstract 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. |
CreateFilter(LogEvent, bool)
Creates a filter.
Declaration
public abstract 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. |