mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Adding a few options to the ASCII writer.
module LogAscii; export { # Output everything to stdout rather than into files. This is primarily # for testing purposes. const output_to_stdout = F &redef; # The separator between fields. const separator = "\t" &redef; # True to include a header line with column names. const include_header = T &redef; }
This commit is contained in:
parent
26eab74ecc
commit
c6d20dbfdf
9 changed files with 101 additions and 19 deletions
|
@ -11,7 +11,7 @@ type Stream: record;
|
|||
type RotationInfo: record;
|
||||
type RotationControl: record;
|
||||
|
||||
const Log::rotation_control : RotationControl;
|
||||
const Log::rotation_control: RotationControl;
|
||||
|
||||
function Log::__create_stream%(id: Log::ID, stream: Log::Stream%) : bool
|
||||
%{
|
||||
|
@ -60,3 +60,12 @@ function Log::__flush%(id: Log::ID%): bool
|
|||
bool result = log_mgr->Flush(id->AsEnumVal());
|
||||
return new Val(result, TYPE_BOOL);
|
||||
%}
|
||||
|
||||
# Options for the ASCII writer.
|
||||
|
||||
module LogAscii;
|
||||
|
||||
const output_to_stdout: bool;
|
||||
const separator: string;
|
||||
const include_header: bool;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue