mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Move logging code to zeek namespaces
This commit is contained in:
parent
9a800265ff
commit
45b5c6e619
25 changed files with 135 additions and 114 deletions
|
@ -10,7 +10,7 @@
|
|||
using threading::Value;
|
||||
using threading::Field;
|
||||
|
||||
namespace logging {
|
||||
namespace zeek::logging {
|
||||
|
||||
// Messages sent from frontend to backend (i.e., "InputMessages").
|
||||
|
||||
|
@ -22,7 +22,6 @@ public:
|
|||
num_fields(num_fields), fields(fields)
|
||||
{}
|
||||
|
||||
|
||||
bool Process() override { return Object()->Init(num_fields, fields); }
|
||||
|
||||
private:
|
||||
|
@ -92,12 +91,8 @@ private:
|
|||
double network_time;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// Frontend methods.
|
||||
|
||||
using namespace logging;
|
||||
|
||||
WriterFrontend::WriterFrontend(const WriterBackend::WriterInfo& arg_info, zeek::EnumVal* arg_stream,
|
||||
zeek::EnumVal* arg_writer, bool arg_local, bool arg_remote)
|
||||
{
|
||||
|
@ -299,3 +294,5 @@ void WriterFrontend::DeleteVals(int num_fields, Value** vals)
|
|||
|
||||
delete [] vals;
|
||||
}
|
||||
|
||||
} // namespace zeek::logging
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue