mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Added a non boolean configuration and other changes as suggested by Jon
This commit is contained in:
parent
c9016f1397
commit
4be6871df2
12 changed files with 136 additions and 45 deletions
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# @TEST-EXEC: zeek -b %INPUT
|
||||
# @TEST-EXEC: btest-diff print.log
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
# @TEST-EXEC: btest-diff otherfile
|
||||
# @TEST-EXEC: btest-diff anotherfile
|
||||
|
||||
redef Log::print_to_log = Log::REDIRECT_STDOUT;
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
local f = open("otherfile");
|
||||
print f, "hello world ,";
|
||||
print "hello world ,";
|
||||
print f,2,T;
|
||||
print 2,T;
|
||||
close(f);
|
||||
}
|
||||
|
||||
event Log::log_print (rec: Log::PrintLogInfo)
|
||||
{
|
||||
local f = open("anotherfile");
|
||||
print f,"from event",rec;
|
||||
close(f);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue