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

@ -38,6 +38,7 @@ ocsp
openflow
packet_filter
pe
print
radius
rdp
reporter

View file

@ -0,0 +1,11 @@
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path print_statements
#open 2019-11-13-18-11-01
#fields ts vals
#types time set[string]
1573697461.909861 hello world \x2c
1573697461.909946 T,2
#close 2019-11-13-18-11-01

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