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

@ -5,14 +5,13 @@
#include "SQLite.h"
namespace plugin {
namespace Zeek_SQLiteWriter {
namespace zeek::plugin::Zeek_SQLiteWriter {
class Plugin : public zeek::plugin::Plugin {
public:
zeek::plugin::Configuration Configure() override
{
AddComponent(new ::logging::Component("SQLite", ::logging::writer::SQLite::Instantiate));
AddComponent(new zeek::logging::Component("SQLite", zeek::logging::writer::detail::SQLite::Instantiate));
zeek::plugin::Configuration config;
config.name = "Zeek::SQLiteWriter";
@ -21,5 +20,4 @@ public:
}
} plugin;
}
}
} // namespace zeek::plugin::Zeek_SQLiteWriter