zeek/testing/btest/scripts/base/frameworks/input
Johanna Amann 6b9abe85a7 Add error events to input framework.
This change introduces error events for Table and Event readers. Users
can now specify an event that is called when an info, warning, or error
is emitted by their input reader. This can, e.g., be used to raise
notices in case errors occur when reading an important input stream.

Example:

event error_event(desc: Input::TableDescription, msg: string, level: Reporter::Level)
	{
	...
	}

event bro_init()
	{
	Input::add_table([$source="a", $error_ev=error_event, ...]);
	}

For the moment, this converts all errors in the Asciiformatter into
warnings (to show that they are non-fatal) - the Reader itself also has
to throw an Error to show that a fatal error occurred and processing
will be abort.

It might be nicer to change this and require readers to mark fatal
errors as such when throwing them.

Addresses BIT-1181
2016-07-22 19:45:28 -07:00
..
raw Fix offset=-1 (eof) for raw reader 2015-09-16 15:16:04 -07:00
sqlite Baseline updates for the addition of local_resp. 2015-02-23 16:25:11 -08:00
basic.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
bignumber.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
binary.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
default.bro Merge branch 'topic/jgras/input-default' of https://github.com/J-Gras/bro 2016-06-15 17:32:50 -07:00
empty-values-hashing.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
emptyvals.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
errors.bro Add error events to input framework. 2016-07-22 19:45:28 -07:00
event.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
invalidnumbers.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
invalidtext.bro Add error events to input framework. 2016-07-22 19:45:28 -07:00
missing-enum.bro Change the way the input framework deals with values it cannot convert 2015-03-19 14:58:38 -07:00
missing-file.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
onecolumn-norecord.bro Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
onecolumn-record.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
optional.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
port.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
predicate-stream.bro Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
predicate.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
predicatemodify.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
predicatemodifyandreread.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
predicaterefusesecondsamerecord.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
repeat.bro Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
reread.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
set.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
setseparator.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
setspecialcases.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
stream.bro Merge remote-tracking branch 'origin/topic/vladg/ssh' 2015-03-25 11:04:26 -07:00
subrecord-event.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
subrecord.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
tableevent.bro Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
twotables.bro Merge remote-tracking branch 'origin/topic/vladg/ssh' 2015-03-25 11:04:26 -07:00
unsupported_types.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
windows.bro Ascii Input: Accept dos/windows newlines. 2016-06-01 11:21:44 -07:00