1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
9
<holder>Ericsson AB, All Rights Reserved</holder>
12
The contents of this file are subject to the Erlang Public License,
13
Version 1.1, (the "License"); you may not use this file except in
14
compliance with the License. You should have received a copy of the
15
Erlang Public License along with this software. If not, it can be
16
retrieved online at http://www.erlang.org/.
18
Software distributed under the License is distributed on an "AS IS"
19
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
20
the License for the specific language governing rights and limitations
23
The Initial Developer of the Original Code is Ericsson AB.
27
<prepared>Martin Björklund</prepared>
28
<responsible>Martin Björklund</responsible>
30
<approved>Bjarne Däcker</approved>
32
<date>1996-10-16</date>
37
<modulesummary>The Report Browser Tool</modulesummary>
39
<p>The Report Browser (RB) tool makes it possible to browse and
40
format error reports written by the error logger handler
46
<name>grep(RegExp)</name>
47
<fsummary>Search the reports for a regular expression</fsummary>
49
<v>RegExp = string()</v>
52
<p>All reports containing the regular expression <c>RegExp</c>
55
<p><c>RegExp</c> is a string containing the regular
56
expression. Refer to the module <c>regexp</c> in the STDLIB
58
for a definition of valid regular expressions. They are
59
essentially the same as the UNIX command <c>egrep</c>.
66
<fsummary>Print help information</fsummary>
68
<p>Prints the on-line help information.
74
<name>list(Type)</name>
75
<fsummary>List all reports</fsummary>
78
<v>type() = crash_report | supervisor_report | error | progress</v>
81
<p>This function lists all reports loaded in the
82
<c>rb_server</c>. Each report is given a unique number that
83
can be used as a reference to the report in the
84
<c>show/1</c> function.
86
<p>If no <c>Type</c> is given, all reports are listed.
92
<name>rescan(Options)</name>
93
<fsummary>Rescan the report directory</fsummary>
95
<v>Options = [opt()]</v>
98
<p>Rescans the report directory. <c>Options</c> is the same as
105
<name>show(Report)</name>
106
<fsummary>Show reports</fsummary>
108
<v>Report = int() | type()</v>
111
<p>If a type argument is given, all loaded reports of this
112
type are printed. If an integer argument is given, the
113
report with this reference number is printed. If no argument
114
is given, all reports are shown.
120
<name>start(Options)</name>
121
<fsummary>Start the RB server</fsummary>
123
<v>Options = [opt()]</v>
124
<v>opt() = {start_log, FileName} | {max, MaxNoOfReports} | {report_dir, DirString} | {type, ReportType} | {abort_on_error, Bool}</v>
125
<v>FileName = string() | standard_io</v>
126
<v>MaxNoOfReports = int() | all</v>
127
<v>DirString = string()</v>
128
<v>ReportType = type() | [type()] | all</v>
129
<v>Bool = true | false</v>
132
<p>The function <c>start/1</c> starts the <c>rb_server</c>
133
with the specified options, while <c>start/0</c> starts with
134
default options. The <c>rb_server</c> must be started before
135
reports can be browsed. When the <c>rb_server</c> is
136
started, the files in the specified directory are
137
scanned. The other functions assume that the server has
140
<p><c>{start_log, FileName}</c> starts logging to file. All
141
reports will be printed to the named file. The default is
144
<p><c>{max, MaxNoOfReports}</c>. Controls how many reports the
145
<c>rb_server</c> should read on start-up. This option is
146
useful as the directory may contain 20.000 reports. If this
147
option is given, the <c>MaxNoOfReports</c> latest reports
148
will be read. The default is 'all'.
150
<p><c>{report_dir, DirString}</c>. Defines the directory where
151
the error log files are located. The default is <c>{sasl, error_logger_mf_dir}</c>. </p>
152
<p><c>{type, ReportType}</c>. Controls what kind of reports the
153
<c>rb_server</c> should read on start-up. <c>ReportType</c>
154
is a supported type, 'all', or a list of supported
155
types. The default is 'all'.
157
<p><c>{abort_on_error, Bool}</c>. This option specifies whether
158
or not logging should be aborted if rb encounters an unprintable
159
report. (You may get a report on incorrect form if the
160
<c>error_logger</c> function <c>error_msg</c> or
161
<c>info_msg</c> has been called with an invalid format string).
162
If <c>Bool</c> is <c>true</c>, rb will stop logging (and print an
163
error message to stdout) if it encounters a badly formatted report.
164
If logging to file is enabled, an error message will be appended to
165
the log file as well.
166
If <c>Bool</c> is <c>false</c> (which is the default value), rb will
167
print an error message to stdout for every bad report it
168
encounters, but the logging process is never aborted. All printable
169
reports will be written. If logging to file is enabled, rb prints
170
<c>* UNPRINTABLE REPORT *</c> in the log file at the location of an
176
<name>start_log(FileName)</name>
177
<fsummary>Redirect all output to <c>FileName</c></fsummary>
179
<v>FileName = string()</v>
182
<p>Redirects all report output from the RB tool to the
189
<fsummary>Stop the RB server</fsummary>
191
<p>Stops the <c>rb_server</c>.
196
<name>stop_log()</name>
197
<fsummary>Stop logging to file</fsummary>
199
<p>Closes the log file. The output from the RB tool will be
200
directed to <c>standard_io</c>.