mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
A log write now raises the corresponding event.
The event has moved from the filters to the streams, and must now be specificed when creating the stream. (Not clear yet whether that is a indeed the right interface).
This commit is contained in:
parent
091547de4f
commit
f6da93992c
6 changed files with 67 additions and 35 deletions
|
@ -5,6 +5,7 @@
|
|||
#define LOGMGR_H
|
||||
|
||||
#include "Val.h"
|
||||
#include "EventHandler.h"
|
||||
|
||||
// One value per writer type we have.
|
||||
namespace LogWriterType {
|
||||
|
@ -54,7 +55,7 @@ public:
|
|||
|
||||
// These correspond to the BiFs visible on the scripting layer. The
|
||||
// actual BiFs just forward here.
|
||||
bool CreateStream(EnumVal* stream_id, RecordType* columns);
|
||||
bool CreateStream(EnumVal* stream_id, RecordType* columns, EventHandlerPtr handler);
|
||||
bool AddFilter(EnumVal* stream_id, RecordVal* filter);
|
||||
bool RemoveFilter(EnumVal* stream_id, StringVal* filter);
|
||||
bool Write(EnumVal* stream_id, RecordVal* columns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue