[erlang-questions] error_logger
Siri Hansen
erlangsiri@REDACTED
Thu Jan 12 10:16:15 CET 2012
>From sasl user guide:
"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."
I.e. start rb like this:
> rb:start([{report_dir,"/tmp/error_logs"}]).
/siri
2012/1/11 eigenfunction <emeka_1978@REDACTED>
> Thank you very much for the quick answer, to which the next question
> follows:
> how do i read the binary-reports offline? I have copied the folder
> errors.log to another directory, let's say /tmp
> and am starting the erlang shell with erl -boot start_sasl -sasl
> error_logger_mf_dir "\"tmp/error_logs\"" error_logger_mf_maxfiles 5
> error_logger_mf_maxbytes 10&.
> It just overrides the previous files that were there and shows me the
> newly created ones.
> Any idea?
>
> On 11 Jan., 15:56, Siri Hansen <erlangs...@REDACTED> wrote:
> > 2012/1/11 eigenfunction <emeka_1...@REDACTED>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > This is my sasl config file:
> >
> > > [{sasl, [
> > > {sasl_error_logger, {file,"d:/error_logs/errors.log"}},
> > > %%{errlog_type, error},
> > > {error_logger_mf_dir,"d:/error_logs" },
> > > {error_logger_mf_maxbytes,10485760},
> > > {error_logger_mf_maxfiles, 2}
> > > ]}].
> >
> > > Can someone plz explain to me why i am only getting progress reports
> > > in my file ?
> > > In my code i used error_logger:msg_error ... for error messages.
> > > thx.
> >
> > > This configuration installs two error handlers. First, the
> >
> > sasl_error_logger variable installs sasl_report_file_h which according to
> > the documentation "Formats and writes supervisor reports, crash report
> and
> > progress report to a single file."
> >
> > Next, the three error_logger_mf_* variables install log_mf_h, which
> writes
> > *all* error logger events to a circular set of binary files in the
> > directory specified by the error_logger_mf_dir variable (files will be
> > named 1, 2 and index). These files can best be read with the report
> browser
> > (rb) in the sasl application.
> >
> > So, in your errors.log file you will only get supervisor, crash and
> > progress reports, while the circular set of binary files will contain
> *all*
> > reports, including errors...
> >
> > Regards
> > /siri
> >
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questi...@REDACTED://
> erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120112/a5d3fe11/attachment.htm>
More information about the erlang-questions
mailing list