Move logging code to zeek namespaces

This commit is contained in:
Tim Wojtulewicz 2020-08-01 10:48:05 -07:00
parent 9a800265ff
commit 45b5c6e619
25 changed files with 135 additions and 114 deletions

View file

@ -14,7 +14,7 @@
using threading::Value;
using threading::Field;
namespace logging {
namespace zeek::logging {
class RotationFinishedMessage final : public threading::OutputMessage<WriterFrontend>
{
@ -63,12 +63,8 @@ public:
bool Process() override { Object()->SetDisable(); return true; }
};
}
// Backend methods.
using namespace logging;
broker::data WriterBackend::WriterInfo::ToBroker() const
{
auto t = broker::table();
@ -331,3 +327,5 @@ bool WriterBackend::OnHeartbeat(double network_time, double current_time)
SendOut(new FlushWriteBufferMessage(frontend));
return DoHeartbeat(network_time, current_time);
}
} // namespace zeek::logging