base/bif/reporter.bif.bro
-
GLOBAL
-
Reporter
The reporter built-in functions allow for the scripting layer to
generate messages of varying severity. If no event handlers
exist for reporter messages, the messages are output to stderr.
If event handlers do exist, it’s assumed they take care of determining
how/where to output the messages.
See base/frameworks/reporter/main.bro for a convenient
reporter message logging framework.
Detailed Interface
Functions
-
Reporter::conn_weird
-
Generates a “conn” weird.
Name: | the name of the weird. |
C: | the connection associated with the weird. |
Addl: | additional information to accompany the weird. |
Returns: | Always true. |
-
Reporter::error
-
Generates a non-fatal error indicative of a definite problem that should
be addressed. Program execution does not terminate.
Msg: | The error message to report. |
Returns: | Always true. |
See also: reporter_error
-
Reporter::fatal
-
Generates a fatal error on stderr and terminates program execution.
Msg: | The error message to report. |
Returns: | Always true. |
-
Reporter::flow_weird
-
Generates a “flow” weird.
Name: | the name of the weird. |
Orig: | the originator host associated with the weird. |
Resp: | the responder host associated with the weird. |
Returns: | Always true. |
-
Reporter::info
-
Generates an informational message.
Msg: | The informational message to report. |
Returns: | Always true. |
See also: reporter_info
-
Reporter::net_weird
-
Generates a “net” weird.
Name: | the name of the weird. |
Returns: | Always true. |
-
Reporter::warning
-
Generates a message that warns of a potential problem.
Msg: | The warning message to report. |
Returns: | Always true. |
See also: reporter_warning