[erlang-questions] Should we deprecate or modernize log_mf_h and rb?

Richard Carlsson carlsson.richard@REDACTED
Fri Feb 15 17:41:09 CET 2019


If anyone is interested (hello Martin and Siri!), we have slightly
modernized our rotating cleartext logger handler to keep it compatible with
recent OTP versions, and split it up into three separate modules, one as
api and handler-supervisor, and one for the formatting of messages.
Available here, as a diff on top of the old version if anyone still wants
that:
https://github.com/richcarl/otp/commits/disk_log_h

        /Richard

Den fre 1 apr. 2016 kl 13:34 skrev Richard Carlsson <
carlsson.richard@REDACTED>:

> Thanks for pointing out that old mail, Martin! These days though, it's
> probably worthwhile to rethink/rewrite these handlers from scratch rather
> than import disk_log_h into OTP as it is.
>
>
>         /Richard
>
> 2016-04-01 13:08 GMT+02:00 Martin Bjorklund <mbj@REDACTED>:
>
>> Hi,
>>
>> We are not using log_mf_h, but instead we're using disk_log_h (see
>> http://erlang.org/pipermail/erlang-patches/2012-January/002583.html)
>>
>> We use this handler to get log rotation, but we log all error logger
>> messages in clear text (this should IMO be the default).
>>
>> If you're interested in adding disk_log_h to OTP (search for
>> disk_log_h in disk_log.erl...), the latest version
>> (updated as recently as 2006 :) can be found here:
>>
>> https://github.com/richcarl/otp/blob/disk_log_h/lib/kernel/src/disk_log_h.erl
>>
>> I support the deprecation initiative!
>>
>>
>> /martin
>>
>>
>>
>> Siri Hansen <erlangsiri@REDACTED> wrote:
>> > Hello list!
>> >
>> > log_mf_h is an error_logger event handler which logs events to disk and
>> > does log rotation. rb (report browser) is the tool for reading and
>> > formatting the logs. The implementation of both modules is quite old and
>> > outdated. The fact that there is a size field for the events of only 16
>> > bits, which we haven't got any complaints for, has made us believe that
>> > there might not be many users of these tools. I'm writing to the list to
>> > find out if this is correct...
>> >
>> > Are you using log_mf_h (e.g. by setting environment variables
>> > 'error_logger_mf_*' in sasl) and rb? If so, why - is it the log
>> rotation or
>> > the binary logging (or both) that you are really after? Have you
>> considered
>> > alternative tools?
>> >
>> > Kind Regards
>> > /siri@REDACTED
>> _______________________________________________
>> 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/20190215/699bb81f/attachment.htm>


More information about the erlang-questions mailing list