zeek/scripts/base
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
..
files Add some missing Bro script documentation 2016-05-05 16:35:31 -05:00
frameworks Add error events to input framework. 2016-07-22 19:45:28 -07:00
misc More stats improvements 2016-01-07 16:20:24 -05:00
protocols SSL: add support for signature_algorithms extension. 2016-07-11 15:01:59 -07:00
utils Merge remote-tracking branch 'origin/topic/johanna/rawleak' 2016-06-18 09:49:17 -07:00
init-bare.bro SSL: add support for signature_algorithms extension. 2016-07-11 15:01:59 -07:00
init-default.bro Merge remote-tracking branch 'origin/master' into J-Gras-topic/jgras/bit-1507 2016-06-15 10:32:46 -04:00