base/frameworks/reporter/main.zeek
- Reporter
This framework is intended to create an output and filtering path for
internal messages/warnings/errors. It should typically be loaded to
log such messages to a file in a standard way. For the options to
toggle whether messages are additionally written to STDERR, see
Reporter::info_to_stderr,
Reporter::warnings_to_stderr, and
Reporter::errors_to_stderr.
Note that this framework deals with the handling of internally generated reporter messages, for the interface into actually creating reporter messages from the scripting layer, use the built-in functions in base/bif/reporter.bif.zeek.
- Namespace:
Reporter
Summary
Types
The record type which contains the column fields of the reporter log. |
Redefinitions
The reporter logging stream identifier. |
Hooks
A default logging policy hook for the stream. |
Detailed Interface
Types
- Reporter::Info
- Type:
- Fields:
-
-
level:
Reporter::Level&log The severity of the reporter message. Levels are INFO for informational messages, not needing specific attention; WARNING for warning of a potential problem, and ERROR for a non-fatal error that should be addressed, but doesn’t terminate program execution.
-
level:
The record type which contains the column fields of the reporter log.
Hooks
- Reporter::log_policy
- Type:
A default logging policy hook for the stream.