>From sasl user guide:<div><br></div><div>"If the report browser is used off-line, the reports can be copied to another directory which is specified when starting the browser. If no such directory is specified, the browser reads reports from the SASL error_logger_mf_dir."</div>
<div><br></div><div>I.e. start rb like this:</div><div><br></div><div>> rb:start([{report_dir,"/tmp/error_logs"}]).</div><div><br></div><div>/siri<br><br><div class="gmail_quote">2012/1/11 eigenfunction <span dir="ltr"><<a href="mailto:emeka_1978@yahoo.com">emeka_1978@yahoo.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you very much for the quick answer, to which the next question<br>
follows:<br>
how do i read the binary-reports offline? I have copied the folder<br>
errors.log to another directory, let's say /tmp<br>
and am starting the erlang shell with erl -boot start_sasl -sasl<br>
error_logger_mf_dir "\"tmp/error_logs\"" error_logger_mf_maxfiles 5<br>
error_logger_mf_maxbytes 10&.<br>
It just overrides the previous files that were there and shows me the<br>
newly created ones.<br>
Any idea?<br>
<br>
On 11 Jan., 15:56, Siri Hansen <<a href="mailto:erlangs...@gmail.com">erlangs...@gmail.com</a>> wrote:<br>
> 2012/1/11 eigenfunction <<a href="mailto:emeka_1...@yahoo.com">emeka_1...@yahoo.com</a>><br>
<div><div class="h5">><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> > This is my sasl config file:<br>
><br>
> > [{sasl, [<br>
> > {sasl_error_logger, {file,"d:/error_logs/errors.log"}},<br>
> > %%{errlog_type, error},<br>
> > {error_logger_mf_dir,"d:/error_logs" },<br>
> > {error_logger_mf_maxbytes,10485760},<br>
> > {error_logger_mf_maxfiles, 2}<br>
> > ]}].<br>
><br>
> > Can someone plz explain to me why i am only getting progress reports<br>
> > in my file ?<br>
> > In my code i used error_logger:msg_error ... for error messages.<br>
> > thx.<br>
><br>
> > This configuration installs two error handlers. First, the<br>
><br>
> sasl_error_logger variable installs sasl_report_file_h which according to<br>
> the documentation "Formats and writes supervisor reports, crash report and<br>
> progress report to a single file."<br>
><br>
> Next, the three error_logger_mf_* variables install log_mf_h, which writes<br>
> *all* error logger events to a circular set of binary files in the<br>
> directory specified by the error_logger_mf_dir variable (files will be<br>
> named 1, 2 and index). These files can best be read with the report browser<br>
> (rb) in the sasl application.<br>
><br>
> So, in your errors.log file you will only get supervisor, crash and<br>
> progress reports, while the circular set of binary files will contain *all*<br>
> reports, including errors...<br>
><br>
> Regards<br>
> /siri<br>
><br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> erlang-questi...@erlang.orghttp://<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">erlang.org/mailman/listinfo/erlang-questions</a><br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>