$_constraints
$_constraints : array
Constraint list.
Filters log events using defined constraints on one or more fields of the $event array.
addConstraint(string $field, \Horde_Constraint $constraint) : \Horde_Log_Filter_Constraint
Add a constraint to the filter
string | $field | The field to apply the constraint to. |
\Horde_Constraint | $constraint | The constraint to apply. |
A reference to $this to allow method chaining.
addRegex(string $field, string $regex) : \Horde_Log_Filter_Constraint
Add a regular expression to filter by
Takes a field name and a regex, if the regex does not match then the event is filtered.
string | $field | The name of the field that should be part of the event. |
string | $regex | The regular expression to filter by. |
A reference to $this to allow method chaining.
addRequiredField(string $field) : \Horde_Log_Filter_Constraint
Add a required field to the filter
If the field does not exist on the event, then it is filtered.
string | $field | The name of the field that should be part of the event. |
A reference to $this to allow method chaining.
addRequiredFields() : \Horde_Log_Filter_Constraint
Adds all arguments passed as required fields
A reference to $this to allow method chaining.