py4j
py4j copied to clipboard
Question : redirect java logging to the python side
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.