zeek/testing/btest/plugins
Johanna Amann 684ea8aa37 Plugin: Add hooks for log init and writing.
The two hooks being added are:

void HookLogInit(const std::string& writer, const std::string& instantiating_filter, bool local, bool remote, const logging::WriterBackend::WriterInfo& info, int num_fields, const threading::Field* const* fields);

which is called when a writer is being instantiated and contains
information about the fields being logged, as well as

bool HookLogWrite(const std::string& writer, const std::string& filter, const logging::WriterBackend::WriterInfo& info, int num_fields, const threading::Field* const* fields, threading::Value** vals);

which is called for each log line being written by each writer. It
contains all the data being written. The data can be changed in the
function call and lines can be prevented from being written.

This commit also fixes a few small problems with plugin hooks itself,
and extends the tests that were already there, besides introducing tests
for the added functionality.
2017-04-24 14:02:05 -07:00
..
file-plugin Revert "Fix some failing plugin tests on OS X 10.11" 2016-08-01 09:22:40 -07:00
hooks-plugin Plugin: Add hooks for log init and writing. 2017-04-24 14:02:05 -07:00
logging-hooks-plugin Plugin: Add hooks for log init and writing. 2017-04-24 14:02:05 -07:00
pktdumper-plugin Refactor to make bro use a common Packet object. 2015-05-29 10:37:39 -04:00
pktsrc-plugin Fix a failing test on OpenBSD 2016-12-06 10:46:29 -06:00
protocol-plugin Revert "Fix some failing plugin tests on OS X 10.11" 2016-08-01 09:22:40 -07:00
reader-plugin Use the deterministic bro_random in a test, instead of os random(). 2016-10-06 12:56:52 -07:00
writer-plugin Test case for a dynamic log writer. 2014-07-31 11:40:25 -07:00
api-version-mismatch.sh Updating plugin tests. 2015-02-16 20:26:26 -08:00
bifs-and-scripts-install.sh Updating plugin tests. 2015-02-16 20:26:26 -08:00
bifs-and-scripts.sh Updating plugin tests. 2015-02-16 20:26:26 -08:00
file.bro Updating plugin tests. 2015-02-16 20:26:26 -08:00
hooks.bro Really fix plugins/hooks test this time 2016-10-06 15:00:48 -07:00
init-plugin.bro Updating plugin tests. 2015-02-16 20:26:26 -08:00
logging-hooks.bro Plugin: Add hooks for log init and writing. 2017-04-24 14:02:05 -07:00
pktdumper.bro Updating plugin tests. 2015-02-16 20:26:26 -08:00
pktsrc.bro Updating plugin tests. 2015-02-16 20:26:26 -08:00
protocol.bro Updating plugin tests. 2015-02-16 20:26:26 -08:00
reader.bro Updating plugin tests. 2015-02-16 20:26:26 -08:00
writer.bro Remove unnecessary use of TEST_DIFF_CANONIFIER 2015-09-18 17:32:30 -05:00