mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
29 lines
838 B
C++
29 lines
838 B
C++
|
|
#pragma once
|
|
|
|
#include <plugin/Plugin.h>
|
|
|
|
namespace btest::plugin::Log_Hooks
|
|
{
|
|
|
|
class Plugin : public zeek::plugin::Plugin
|
|
{
|
|
protected:
|
|
void HookLogInit(const std::string& writer, const std::string& instantiating_filter, bool local,
|
|
bool remote, const zeek::logging::WriterBackend::WriterInfo& info,
|
|
int num_fields, const zeek::threading::Field* const* fields) override;
|
|
bool HookLogWrite(const std::string& writer, const std::string& filter,
|
|
const zeek::logging::WriterBackend::WriterInfo& info, int num_fields,
|
|
const zeek::threading::Field* const* fields,
|
|
zeek::threading::Value** vals) override;
|
|
|
|
// Overridden from plugin::Plugin.
|
|
zeek::plugin::Configuration Configure() override;
|
|
|
|
private:
|
|
int round;
|
|
};
|
|
|
|
extern Plugin plugin;
|
|
|
|
}
|