Allow Print Statements to be redirected to a Log# This is a combination of 3 commits.

This commit is contained in:
Dev Bali 2019-11-06 19:07:07 -08:00
parent 75588956fc
commit c9016f1397
5 changed files with 89 additions and 0 deletions

View 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;
}