I have a 3-th party jars that integrated with log4j.
I have as well GUI that control the application and i want to trigger command from the GUI and getting the log results.
Only while this command is execute by the GUI i want to bind to the system.out stream and keep all the logging info into a string buffer, by the end of this process i would like to send this string buffer back to the GUI.
Is there any way to bind during runtime into the System.out and enable and disable it ?