zeek/doc/frameworks/comm/testlog.bro
Jon Siwek 8d19bf6381 broker integration: add high-level usage documentation
i.e. documentation of the new "comm framework" w/ examples.
2015-02-18 12:16:46 -06:00

19 lines
288 B
Text

module Test;
export {
redef enum Log::ID += { LOG };
type Info: record {
msg: string &log;
num: count &log;
};
global log_test: event(rec: Test::Info);
}
event bro_init() &priority=5
{
Comm::enable();
Log::create_stream(Test::LOG, [$columns=Test::Info, $ev=log_test]);
}