Show / Hide Table of Contents

Class LogFilterGroupBase

A class representing a group of related filters.

Inheritance
object
LogFilterGroupBase
LogFilterGroup<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.BotBrain.Logging
Assembly: Phoenix.Plugin.BotBrain.Logging.dll
Syntax
public abstract class LogFilterGroupBase

Constructors

View Source

LogFilterGroupBase(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 Source

AllFilters

Gets the collection of all filters.

Declaration
protected ObservableCollection<LogFilterBase> AllFilters { get; }
Property Value
Type Description
ObservableCollection<LogFilterBase>
View Source

Filters

Gets the group's filters.

Declaration
public abstract IEnumerable<LogFilterBase> Filters { get; }
Property Value
Type Description
IEnumerable<LogFilterBase>
View Source

Items

Gets the group's items.

Declaration
public ICollectionView Items { get; }
Property Value
Type Description
ICollectionView
View Source

Name

Gets the group name.

Declaration
public string Name { get; }
Property Value
Type Description
string

Methods

View Source

Clone(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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX