mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

I added the $path to the create_stream() calls inside doc/ as well. * origin/topic/jsiwek/bit-1324: Allow logging filters to inherit default path from stream. BIT-1324: #merged
19 lines
308 B
Text
19 lines
308 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
|
|
{
|
|
BrokerComm::enable();
|
|
Log::create_stream(Test::LOG, [$columns=Test::Info, $ev=log_test, $path="test"]);
|
|
}
|