У меня есть метод, который запускается асинхронно после запуска, используя параметр OutputStream или Writer в качестве параметра.
Он выступает в качестве адаптера записи для OutputStream или Writer (это сторонний API, который я не могу изменить).
Как я могу передать Log4J для внутреннего OutputStream или Writer для этого метода?
... потому что Log4J проглатывает System.out и System.err, которые я использовал раньше.