mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Remove deprecated log filter predicates for 4.1
Update the logging framework tests: since hooks operate by name, they cannot be anonymous. I'm also dropping the &optional attribute from the status field, since here know that the values are actually defined, and access to an optional status field should normally be guarded by the existence test operator. Also includes baseline update for plugins.hooks, which picks up the fact that the pred record field is now gone.
This commit is contained in:
parent
5f09793ce1
commit
4ce3bf3cd2
5 changed files with 302 additions and 316 deletions
|
@ -210,16 +210,6 @@ export {
|
|||
## The logging writer implementation to use.
|
||||
writer: Writer &default=default_writer;
|
||||
|
||||
## Indicates whether a log entry should be recorded.
|
||||
## If not given, all entries are recorded.
|
||||
##
|
||||
## rec: An instance of the stream's ``columns`` type with its
|
||||
## fields set to the values to be logged.
|
||||
##
|
||||
## Returns: True if the entry is to be recorded.
|
||||
pred: function(rec: any): bool &optional
|
||||
&deprecated="Remove in 4.1. PolicyHooks will replace the $pred function.";
|
||||
|
||||
## Output path for recording entries matching this
|
||||
## filter.
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue