rb(3erl) | Erlang Module Definition | rb(3erl) |
rb - The Report Browser Tool
The Report Browser (RB) tool is used to browse and format error reports written by the error logger handler log_mf_h in STDLIB.
filter(Filters)
filter(Filters, Dates)
Types:
Displays the reports that match the provided filters.
When a filter includes the no atom, it excludes the reports that match that filter.
The reports are matched using the proplists module in STDLIB. The report must be a proplist to be matched against any of the filters.
If the filter has the form {Key, RegExp, re}, the report must contain an element with key equal to Key and the value must match the regular expression RegExp.
If parameter Dates is specified, the reports are filtered according to the date when they occurred. If Dates has the form {DateFrom, from}, reports that occurred after DateFrom are displayed.
If Dates has the form {DateTo, to}, reports that occurred before DateTo are displayed.
If two Dates are specified, reports that occurred between those dates are returned.
To filter only by dates, specify the empty list as the Filters parameter.
For details about parameter RegExp, see rb:grep/1.
For details about data type mp(), see re:mp().
For details about data type datetime(), see calendar:datetime().
grep(RegExp)
Types:
All reports matching the regular expression RegExp are displayed. RegExp can be any of the following:
For a definition of valid regular expressions and options, see the re module in STDLIB and in particular function re:run/3.
For details about data type mp(), see re:mp().
h()
help()
Displays online help information.
list()
list(Type)
Types:
Lists all reports loaded in rb_server. Each report is given a unique number that can be used as a reference to the report in function show/1.
If no Type is specified, all reports are listed.
log_list()
log_list(Type)
Types:
Same as functions list/0 or list/1, but the result is printed to a log file, if set; otherwise to standard_io.
If no Type is specified, all reports are listed.
rescan()
rescan(Options)
Types:
Rescans the report directory. Options is the same as for function start/1.
show()
show(Report)
Types:
If argument type is specified, all loaded reports of this type are displayed. If an integer argument is specified, the report with this reference number is displayed. If no argument is specified, all reports are displayed.
start()
start(Options)
Types:
Function start/1 starts rb_server with the specified options, whereas function start/0 starts with default options. rb_server must be started before reports can be browsed. When rb_server is started, the files in the specified directory are scanned. The other functions assume that the server has started.
Options:
start_log(FileName)
Types:
Redirects all report output from the RB tool to the specified file, registered name, or io_device.
stop()
Stops rb_server.
stop_log()
Closes the log file. The output from the RB tool is directed to standard_io.
sasl 4.0.1 | Ericsson AB |