mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +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
|
@ -38,6 +38,7 @@ ocsp
|
|||
openflow
|
||||
packet_filter
|
||||
pe
|
||||
print
|
||||
radius
|
||||
rdp
|
||||
reporter
|
||||
|
|
|
@ -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
|
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