mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
factor out ascii input/output.
First step - factored out everything the logging classes use ( so only output ). Moved the script-level configuration to logging/main, and made the individual writers just refer to it - no idea if this is good design. It works. But I am happy about opinions :) Next step - add support for input...
This commit is contained in:
parent
f62df0de82
commit
501328d61a
13 changed files with 194 additions and 297 deletions
|
@ -118,6 +118,7 @@ public:
|
|||
|
||||
// Bypasses the escaping enabled via SetEscape().
|
||||
void AddRaw(const char* s, int len) { AddBytesRaw(s, len); }
|
||||
void AddRaw(const string &s) { AddBytesRaw(s.data(), s.size()); }
|
||||
|
||||
// Returns the description as a string.
|
||||
const char* Description() const { return (const char*) base; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue