py4j icon indicating copy to clipboard operation
py4j copied to clipboard

Question : redirect java logging to the python side

Open deb75 opened this issue 3 years ago • 0 comments

When using log4j, logs are configured to print on the standard output of the running java application, where the server has been started.

If I run a python script, then all log messages will appear elsewhere than the standard output of the python script.

Is it possible to redirect all log messages from java to python ?

I guess it is possible to configure log4j to redirect messages elsewhere so that the py4j python module is able to catch them.

deb75 avatar Nov 19 '20 20:11 deb75