mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Refactor initialization of ASCII log writer options.
This commit is contained in:
parent
13d8908a8d
commit
2a5b209f6d
2 changed files with 122 additions and 86 deletions
|
@ -34,9 +34,13 @@ protected:
|
|||
|
||||
private:
|
||||
bool IsSpecial(string path) { return path.find("/dev/") == 0; }
|
||||
bool WriteHeader(const string& path);
|
||||
bool WriteHeaderField(const string& key, const string& value);
|
||||
void CloseFile(double t);
|
||||
string Timestamp(double t); // Uses current time if t is zero.
|
||||
void InitConfigOptions();
|
||||
bool InitFilterOptions();
|
||||
bool InitFormatter();
|
||||
|
||||
int fd;
|
||||
string fname;
|
||||
|
@ -58,6 +62,7 @@ private:
|
|||
string json_timestamps;
|
||||
|
||||
threading::formatter::Formatter* formatter;
|
||||
bool init_options;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue