mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
21 lines
No EOL
333 B
Text
21 lines
No EOL
333 B
Text
#
|
|
# @TEST-EXEC: zeek -b %INPUT
|
|
# @TEST-EXEC: btest-diff test.log
|
|
|
|
redef LogAscii::enable_utf_8 = T;
|
|
|
|
module Test;
|
|
export {
|
|
redef enum Log::ID += { LOG };
|
|
|
|
type Log: record {
|
|
s: string;
|
|
} &log;
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
local a = "foo \n\t\0 bar";
|
|
Log::create_stream(Test::LOG, [$columns=Log]);
|
|
Log::write(Test::LOG, [$s=a]);
|
|
} |