zeek/testing/btest/scripts/base/frameworks
Robin Sommer 19eea409c3 Extending the log writer DoInit() API.
We now pass in a Info struct that contains:

    - the path name (as before)
    - the rotation interval
    - the log_rotate_base_time in seconds
    - a table of key/value pairs with further configuration options.

To fill the table, log filters have a new field "config: table[string]
of strings". This gives a way to pass arbitrary values from
script-land to writers. Interpretation is left up to the writer.

Also splits calc_next_rotate() into two functions, one of which is
thread-safe and can be used with the log_rotate_base_time value from
DoInit().

Includes also updates to the None writer:

    - It gets its own script writers/none.bro.

    - New bool option LogNone::debug to enable debug output. It then
      prints out all the values passed to DoInit(). That's used by a
      btest test to ensure the new DoInit() values are right.

    - Fixed a bug that prevented Bro from terminating..

(scripts.base.frameworks.logging.rotate-custom currently fails.
Haven't yet investigated why.)
2012-06-21 17:42:33 -07:00
..
cluster Switching to new btest command TEST-SERIALIZE for communication tests. 2012-05-14 16:50:48 -07:00
communication Switching to new btest command TEST-SERIALIZE for communication tests. 2012-05-14 16:50:48 -07:00
control Switching to new btest command TEST-SERIALIZE for communication tests. 2012-05-14 16:50:48 -07:00
input disable streaming reads from executed commands. 2012-06-07 14:36:03 -07:00
intel Reorganizing btest/policy directory to match new scripts/ organization 2011-08-11 10:43:11 -05:00
logging Extending the log writer DoInit() API. 2012-06-21 17:42:33 -07:00
metrics Switching to new btest command TEST-SERIALIZE for communication tests. 2012-05-14 16:50:48 -07:00
notice Switching to new btest command TEST-SERIALIZE for communication tests. 2012-05-14 16:50:48 -07:00
packet-filter Add a Reporter::fatal BIF. 2011-08-25 13:13:39 -05:00
software Merge remote-tracking branch 'origin/topic/bernhard/software' 2012-02-03 16:17:04 -05:00