Closed NilsRenaud closed 2 years ago
@gnodet could you please explain the choice of using FileDescriptor.out/err
instead of System.out/err
?
Is it possible to come back to System.out/err
?
Thanks in advance !
It's not really doable. However, your test can be fixed with the following: https://github.com/gnodet/logback/commit/e60cd353b834f7e656345ad403f0cfed128e2863
This commit : https://github.com/fusesource/jansi/commit/57aa84d4120395922458f61f20e741198f051087 Has replaced
System.out
andSystem.err
byFileDescriptor.out
andFileDescriptor.err
.Although this seems related to Windows support, it is now impossible to test AnsiConsole when integrated in a project. This is why Logback project is stuck in version 1.18 of JANSI.
As an example, here is a PR trying to upgrade JANSI version in logback : https://github.com/qos-ch/logback/pull/542/files
A possible solution could be to specify the
PrintStream
to use to AnsiConsole, or to useSystem.out
/System.err
back instead ofFileDescriptor
's one.