Show / Hide Table of Contents

Class LogFilterBase

An abstract class for creating filters for log event properties.

Inheritance
object
BindableBase
LogFilterBase
DeviceLogFilter
LevelLogFilter
NameLogFilter
ScenarioLogFilter
Implements
INotifyPropertyChanged
Inherited Members
BindableBase.SetProperty<T>(ref T, T, string)
BindableBase.SetProperty<T>(ref T, T, Action, string)
BindableBase.RaisePropertyChanged(string)
BindableBase.OnPropertyChanged(PropertyChangedEventArgs)
BindableBase.PropertyChanged
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 LogFilterBase : BindableBase, INotifyPropertyChanged

Constructors

View Source

LogFilterBase(LogEvent)

Initializes a new instance of the LogFilterBase class.

Declaration
protected LogFilterBase(LogEvent e)
Parameters
Type Name Description
LogEvent e

The log event to create the filter from.

View Source

LogFilterBase(string)

Initializes a new instance of the LogFilterBase class.

Declaration
protected LogFilterBase(string value)
Parameters
Type Name Description
string value

The value to filter on.

Properties

View Source

IsEnabled

Gets or sets a value indicating whether or not the filter is enabled.

Declaration
public bool IsEnabled { get; set; }
Property Value
Type Description
bool
View Source

IsSelectAllFilter

Gets or sets a value indicating whether or not the filter is SelectAll filer.

Declaration
public bool IsSelectAllFilter { get; set; }
Property Value
Type Description
bool
View Source

Name

Gets the filter name.

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

Value

Gets the value to filter on.

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

Methods

View Source

IsEventVisible(LogEvent)

Determines if the log event should be visible, given this filter.

Declaration
public bool IsEventVisible(LogEvent e)
Parameters
Type Name Description
LogEvent e

The log event.

Returns
Type Description
bool

True if the log event should be visible.

View Source

IsEventVisible(string?)

Determines if the string should be visible, given this filter.

Declaration
public bool IsEventVisible(string? value)
Parameters
Type Name Description
string value

The string.

Returns
Type Description
bool

True if the string should be visible.

View Source

Match(LogEvent)

Determines if the filter matches the given log event.

Declaration
public virtual bool Match(LogEvent e)
Parameters
Type Name Description
LogEvent e

The log event.

Returns
Type Description
bool

True if the filter matches.

View Source

Match(string?)

Determines if the filter matches the given string.

Declaration
public virtual bool Match(string? value)
Parameters
Type Name Description
string value

The string.

Returns
Type Description
bool

True if the filter matches.

View Source

Read(LogEvent)

Gets the value to filter on from a log event.

Declaration
protected abstract string? Read(LogEvent e)
Parameters
Type Name Description
LogEvent e

The log event.

Returns
Type Description
string

The value to filter on.

Implements

INotifyPropertyChanged

Extension Methods

INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action)
INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action<object?, string>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<bool>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<object?, string, bool>)
  • View Source
In this article
Back to top Generated by DocFX