mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
New bif log_set_buf() to set the buffering state for a stream.
This commit is contained in:
parent
434f57f85f
commit
cf148c8a25
8 changed files with 78 additions and 37 deletions
|
@ -125,6 +125,9 @@ bool LogWriterAscii::DoWrite(int num_fields, LogField** fields, LogVal** vals)
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( IsBuf() )
|
||||
fflush(file);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -133,8 +136,10 @@ bool LogWriterAscii::DoRotate(string rotated_path)
|
|||
return true;
|
||||
}
|
||||
|
||||
void LogWriterAscii::DoSetFlushing(bool enabled)
|
||||
bool LogWriterAscii::DoSetBuf(bool enabled)
|
||||
{
|
||||
// Nothing to do.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue