mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Preparing LogWriter API for rotation and flushing.
This commit is contained in:
parent
b98d5adcd5
commit
091547de4f
3 changed files with 47 additions and 3 deletions
|
@ -15,9 +15,11 @@ public:
|
|||
static LogWriter* Instantiate() { return new LogWriterAscii; }
|
||||
|
||||
protected:
|
||||
bool DoInit(string path, int num_fields, LogField** fields);
|
||||
bool DoWrite(int num_fields, LogField** fields, LogVal** vals);
|
||||
void DoFinish();
|
||||
virtual bool DoInit(string path, int num_fields, LogField** fields);
|
||||
virtual bool DoWrite(int num_fields, LogField** fields, LogVal** vals);
|
||||
virtual void DoSetFlushing(bool enabled);
|
||||
virtual bool DoRotate(string rotated_path);
|
||||
virtual void DoFinish();
|
||||
|
||||
private:
|
||||
FILE* file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue