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

Nicolas Martyanoff <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <[email protected]>
Lukas Larsson <[email protected]> writes:

> On Mon, May 10, 2021 at 10:13 AM Nicolas Martyanoff <[email protected]>
> 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
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.