You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
except the java log messages are not streamed to console. they are appearing after the program terminated.
since the python APP going to continuously run, is it possible to get the java log messages appear on the console immediately?
java libraries are using log4j2 for logging
The text was updated successfully, but these errors were encountered:
ismailsimsek
changed the title
Is it possible to see java console log output dusing the excetution
java console log messages are printed after termination
Jan 29, 2025
Thats not my experience. What I have done though is capture System.out and System.err in java and redirect them to jupyter console (via sys.stdout/sys.stderr). This works even for slf4j logging done in Java.
Yes, some applications, like pytest or jupyter will capture/redirect the Python stdout and that can cause problems with the Java side not behaving like your expect. The code above (plus some associated Java code) redirects the java stdout/err to the Python equivalent.
using pyjnius so far everything is working fine.
except the java log messages are not streamed to console. they are appearing after the program terminated.
since the python APP going to continuously run, is it possible to get the java log messages appear on the console immediately?
java libraries are using log4j2 for logging
The text was updated successfully, but these errors were encountered: