mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Allow Print Statements to be redirected to a Log# This is a combination of 3 commits.
This commit is contained in:
parent
75588956fc
commit
c9016f1397
5 changed files with 89 additions and 0 deletions
12
testing/btest/scripts/base/frameworks/logging/print-log.zeek
Normal file
12
testing/btest/scripts/base/frameworks/logging/print-log.zeek
Normal file
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# @TEST-EXEC: zeek -b %INPUT
|
||||
# @TEST-EXEC: btest-diff print_statements.log
|
||||
|
||||
redef Log::print_to_log = T;
|
||||
redef Log::print_log_path = "print_statements";
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
print "hello world ,";
|
||||
print 2,T;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue