Erlang (OTP 21+) Logger Console Output Question (Garbled Prompt)

Nicolas Martyanoff khaelin@REDACTED
Mon May 10 18:47:45 CEST 2021


Lukas Larsson <lukas@REDACTED> writes:

> On Mon, May 10, 2021 at 10:13 AM Nicolas Martyanoff <khaelin@REDACTED>
> wrote:
>
>>
>> I tried to work around it with custom log handlers in the past, but
>> could never make it work, and I remember talking about it on #erlang,
>> but the conclusion was that it was not fixable without patching eunit
>> and/or logger.
>>
>
> I spent some time and came up with this solution:
> https://gist.github.com/garazdawi/6319ef80d3b969ebbed5633f11a807b1

Using a custom handle seems to be a good way to fix the problem, I will
give it a try.

The only problem is that is means tests will not use the same handlers
as the project, so it is a workaround.

Thank you !

-- 
Nicolas Martyanoff
http://snowsyn.net
khaelin@REDACTED


More information about the erlang-questions mailing list